Skip to content

Commit

Permalink
Avoid SIGPIPE errors on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
hintjens committed Jul 18, 2011
1 parent 6a1fb44 commit ca2d76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tcp_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ int zmq::tcp_socket_t::open (fd_t fd_, uint64_t sndbuf_, uint64_t rcvbuf_)
errno_assert (rc == 0);
}

#ifdef ZMQ_HAVE_OSX
#ifdef 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);
Expand Down

0 comments on commit ca2d76f

Please sign in to comment.