0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 23:51:04 +08:00

ZMQII-1: Win32 - failure on shutdown

This commit is contained in:
Martin Sustrik 2009-09-14 12:28:13 +02:00
parent c806aabb2d
commit 37cacc5700
4 changed files with 9 additions and 3 deletions

View File

@ -22,6 +22,8 @@
#include <assert.h>
#include <errno.h>
#include "../src/stdint.hpp"
#include "zmq.h"
#include "org_zmq_Socket.h"

View File

@ -229,6 +229,10 @@
RelativePath="..\..\src\poll.cpp"
>
</File>
<File
RelativePath="..\..\src\pub.cpp"
>
</File>
<File
RelativePath="..\..\src\select.cpp"
>

View File

@ -53,10 +53,10 @@ zmq::select_t::select_t () :
zmq::select_t::~select_t ()
{
worker.stop ();
// Make sure there are no fds registered on shutdown.
zmq_assert (load.get () == 0);
worker.stop ();
}
zmq::handle_t zmq::select_t::add_fd (fd_t fd_, i_poll_events *events_)

View File

@ -281,7 +281,7 @@ int zmq::socket_base_t::connect (const char *addr_)
#endif
// Unknown address type.
errno = ENOTSUP;
errno = EFAULT;
return -1;
}