From 3fa9399bc83eebc0a67898328c0e542b764e0c0f Mon Sep 17 00:00:00 2001 From: "Andrew W. Nosenko" Date: Fri, 13 Apr 2012 14:13:07 +0300 Subject: Check for SO_NOSIGPIPE availability instead of OS name * src/stream_engine.cpp (stream_engine_t::stream_engine_t): Use #ifdef SO_NOSIGPIPE instead of #if defined XS_HAVE_OSX || defined XS_HAVE_FREEBSD --- 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 a4df7f3..15b566b 100644 --- a/src/stream_engine.cpp +++ b/src/stream_engine.cpp @@ -78,7 +78,7 @@ xs::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_) : #endif } -#if defined XS_HAVE_OSX || defined XS_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; -- cgit v1.2.3