mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 11:06:52 +01:00
Fix return code redeclaration for platforms with SO_NOSIGPIPE
This commit is contained in:
@@ -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
|
// Make sure that SIGPIPE signal is not generated when writing to a
|
||||||
// connection that was already closed by the peer.
|
// connection that was already closed by the peer.
|
||||||
int set = 1;
|
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);
|
errno_assert (rc == 0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user