diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-01-05 16:57:51 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-01-05 16:57:51 +0100 |
commit | 472bdcd6b4995d2ab92e97aafa898f083ce1f3ba (patch) | |
tree | 9793e9352757361d162da32d7c4b812ea484de06 | |
parent | 95eebbfffaf512d81721697026dbb5434c12c27d (diff) |
Return ETERM from getsockopt(ZMQ_EVETS) if zmq_term() was called
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
-rw-r--r-- | src/socket_base.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp index 248c1e3..f48b48b 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -267,7 +267,7 @@ int zmq::socket_base_t::getsockopt (int option_, void *optval_, return -1; } int rc = process_commands (false, false); - if (rc != 0 && errno == EINTR) + if (rc != 0 && (errno == EINTR || errno == ETERM)) return -1; errno_assert (rc == 0); *((uint32_t*) optval_) = 0; |