mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-28 16:15:23 +08:00
ZMQII-1: Win32 - failure on shutdown
This commit is contained in:
parent
c806aabb2d
commit
37cacc5700
@ -22,6 +22,8 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#include "../src/stdint.hpp"
|
||||||
|
|
||||||
#include "zmq.h"
|
#include "zmq.h"
|
||||||
#include "org_zmq_Socket.h"
|
#include "org_zmq_Socket.h"
|
||||||
|
|
||||||
|
@ -229,6 +229,10 @@
|
|||||||
RelativePath="..\..\src\poll.cpp"
|
RelativePath="..\..\src\poll.cpp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\pub.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\src\select.cpp"
|
RelativePath="..\..\src\select.cpp"
|
||||||
>
|
>
|
||||||
|
@ -53,10 +53,10 @@ zmq::select_t::select_t () :
|
|||||||
|
|
||||||
zmq::select_t::~select_t ()
|
zmq::select_t::~select_t ()
|
||||||
{
|
{
|
||||||
|
worker.stop ();
|
||||||
|
|
||||||
// Make sure there are no fds registered on shutdown.
|
// Make sure there are no fds registered on shutdown.
|
||||||
zmq_assert (load.get () == 0);
|
zmq_assert (load.get () == 0);
|
||||||
|
|
||||||
worker.stop ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
zmq::handle_t zmq::select_t::add_fd (fd_t fd_, i_poll_events *events_)
|
zmq::handle_t zmq::select_t::add_fd (fd_t fd_, i_poll_events *events_)
|
||||||
|
@ -281,7 +281,7 @@ int zmq::socket_base_t::connect (const char *addr_)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Unknown address type.
|
// Unknown address type.
|
||||||
errno = ENOTSUP;
|
errno = EFAULT;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user