Skip to content

Commit

Permalink
Fixed issue 230
Browse files Browse the repository at this point in the history
Signed-off-by: Pieter Hintjens <[email protected]>
  • Loading branch information
hintjens authored and sustrik committed Jul 18, 2011
1 parent 7298b57 commit a33a275
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tcp_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a33a275

Please sign in to comment.