Commit 0bf5a314 authored by Martin Hurton's avatar Martin Hurton

Merge pull request #549 from methodmissing/sigpipe-declare-err

Fix return code redeclaration for platforms with SO_NOSIGPIPE
parents 9703dd80 b5e5e101
......@@ -99,7 +99,7 @@ zmq::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_, cons
// Make sure that SIGPIPE signal is not generated when writing to a
// connection that was already closed by the peer.
int set = 1;
int rc = setsockopt (s, SOL_SOCKET, SO_NOSIGPIPE, &set, sizeof (int));
rc = setsockopt (s, SOL_SOCKET, SO_NOSIGPIPE, &set, sizeof (int));
errno_assert (rc == 0);
#endif
}
......
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