mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-26 10:32:58 +01:00
Check if SO_NOSIGPIPE is defined
This commit is contained in:
@@ -78,7 +78,7 @@ zmq::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_) :
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_OSX || defined ZMQ_HAVE_FREEBSD
|
#ifdef SO_NOSIGPIPE
|
||||||
// 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user