Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Added non-standard SO_NOSIGPIPE socket option.
Browse files Browse the repository at this point in the history
It is available at least on OS X and FreeBSD (disables SIGPIPE being raised on send()ing), but notably not on Linux.
  • Loading branch information
dnadlinger committed Jul 3, 2011
1 parent ac6d7ba commit eebc15e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/sys/posix/sys/socket.d
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ else version( OSX )
SO_ERROR = 0x1007,
SO_KEEPALIVE = 0x0008,
SO_LINGER = 0x1080,
SO_NOSIGPIPE = 0x1022, // non-standard
SO_OOBINLINE = 0x0100,
SO_RCVBUF = 0x1002,
SO_RCVLOWAT = 0x1004,
Expand Down Expand Up @@ -548,6 +549,7 @@ else version( FreeBSD )
SO_ERROR = 0x1007,
SO_KEEPALIVE = 0x0008,
SO_LINGER = 0x0080,
SO_NOSIGPIPE = 0x0800, // non-standard
SO_OOBINLINE = 0x0100,
SO_RCVBUF = 0x1002,
SO_RCVLOWAT = 0x1004,
Expand Down

0 comments on commit eebc15e

Please sign in to comment.