From 4bd78bb4cf7be4036cf7bf077738f50849e06c19 Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Wed, 6 Jun 2012 15:08:00 +0200 Subject: [PATCH] Check if SO_NOSIGPIPE is defined --- src/stream_engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp index fa372c93..d9b91cf7 100644 --- a/src/stream_engine.cpp +++ b/src/stream_engine.cpp @@ -78,7 +78,7 @@ zmq::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_) : #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 // connection that was already closed by the peer. int set = 1;