diff options
author | Pieter Hintjens <ph@imatix.com> | 2011-07-18 12:53:55 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-07-18 12:53:55 +0200 |
commit | a33a275e3b0b1942280cae2317801fbd2185821c (patch) | |
tree | db72ca6545531a624fe5432367e721908892f4a8 | |
parent | 7298b5742f749a2947c9e6460c4a083be84506ed (diff) |
Fixed issue 230
Signed-off-by: Pieter Hintjens <ph@imatix.com>
-rw-r--r-- | src/tcp_socket.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tcp_socket.cpp b/src/tcp_socket.cpp index 3c9b1fd..bd3f117 100644 --- a/src/tcp_socket.cpp +++ b/src/tcp_socket.cpp @@ -158,6 +158,12 @@ int zmq::tcp_socket_t::open (fd_t fd_, int sndbuf_, int rcvbuf_) errno_assert (rc == 0); } +#if defined ZMQ_HAVE_OSX || defined ZMQ_HAVE_FREEBSD + int set = 1; + int rc = setsockopt (s, SOL_SOCKET, SO_NOSIGPIPE, &set, sizeof (int)); + errno_assert (rc == 0); +#endif + return 0; } |