Commit 75c4e0e6 authored by Martin Sustrik's avatar Martin Sustrik

mailbox::recv correctly passes EINTR to the caller

This bug caused signal during blocking call to assert.
Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 4bd33593
......@@ -66,7 +66,7 @@ int zmq::mailbox_t::recv (command_t *cmd_, int timeout_)
// Wait for signal from the command sender.
int rc = signaler.wait (timeout_);
if (rc != 0 && errno == EAGAIN)
if (rc != 0 && (errno == EAGAIN || errno == EINTR))
return -1;
// We've got the signal. Now we can switch into active state.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment