Commit 3db9bf31 authored by Ian Barber's avatar Ian Barber

Merge pull request #363 from AlexBio/fix_nosigpipe_check

Check if SO_NOSIGPIPE is defined
parents f611c57c 4bd78bb4
...@@ -78,7 +78,7 @@ zmq::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_) : ...@@ -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;
......
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