mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-12 09:06:26 +00: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);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user