mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
Fixed issue 230
Signed-off-by: Pieter Hintjens <ph@imatix.com>
This commit is contained in:
parent
7298b5742f
commit
a33a275e3b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user