Skip to content

Commit af03044

Browse files
committed
Handle poll() errors in zmq::signaler_t::wait()
1 parent eba6b33 commit af03044

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/signaler.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,11 @@ int zmq::signaler_t::wait (int timeout_) const
218218
pfd.events = POLLIN;
219219
const int rc = poll (&pfd, 1, timeout_);
220220
if (unlikely (rc < 0)) {
221+
#if defined ZMQ_HAVE_WINDOWS
222+
wsa_assert (WSAGetLastError() == WSAENETDOWN || WSAGetLastError() == WSAENOBUFS)
223+
#else
221224
errno_assert (errno == EINTR);
225+
#endif
222226
return -1;
223227
}
224228
if (unlikely (rc == 0)) {

0 commit comments

Comments
 (0)