summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mailbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailbox.cpp b/src/mailbox.cpp
index 9ef3e19..9fd3ac4 100644
--- a/src/mailbox.cpp
+++ b/src/mailbox.cpp
@@ -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.