Commit 472bdcd6 authored by Martin Sustrik's avatar Martin Sustrik

Return ETERM from getsockopt(ZMQ_EVETS) if zmq_term() was called

Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 95eebbff
......@@ -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;
......
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