mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-19 16:56:11 +01:00
Merge pull request #2813 from AntonBarwald/master
Problem: Sometimes on OSX we get ETIMEDOUT instead of EAGAIN
This commit is contained in:
commit
b3d19ffe1a
@ -553,6 +553,10 @@ int zmq::socket_poller_t::wait (zmq::socket_poller_t::event_t *events_,
|
|||||||
#elif defined ZMQ_HAVE_ANDROID
|
#elif defined ZMQ_HAVE_ANDROID
|
||||||
usleep (timeout_ * 1000);
|
usleep (timeout_ * 1000);
|
||||||
return -1;
|
return -1;
|
||||||
|
#elif defined ZMQ_HAVE_OSX
|
||||||
|
usleep (timeout_ * 1000);
|
||||||
|
errno = EAGAIN;
|
||||||
|
return -1;
|
||||||
#else
|
#else
|
||||||
usleep (timeout_ * 1000);
|
usleep (timeout_ * 1000);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user