You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traditionally, the Unixes raise a SIGPIPE signal for a write failure (usually when it occurs asynchronously.) Also traditionally, this is annoying for userspace programmers which prefer to handle the error as a return code or polled error. This desired behavior may be achieved by ignoring SIGPIPE, but this signal management must be applied process-wide. Automatically apply the non-portable SO_NOSIGPIPE socket option upon socket creation, or the MSG_NOSIGNAL flag when calling sendmsg, or any platform-specific equivalent, when available. These socket options and flags. achieve the same desired behavior but on a per-socket basis and do not require process-wide signal management.
The text was updated successfully, but these errors were encountered:
The MSG_NOSIGNAL flag is already automatically used for sendmsg calls on Linux. A PR need only address applying the SO_NOSIGPIPE (if available on the target platform.)
Traditionally, the Unixes raise a
SIGPIPE
signal for a write failure (usually when it occurs asynchronously.) Also traditionally, this is annoying for userspace programmers which prefer to handle the error as a return code or polled error. This desired behavior may be achieved by ignoringSIGPIPE
, but this signal management must be applied process-wide. Automatically apply the non-portableSO_NOSIGPIPE
socket option upon socket creation, or theMSG_NOSIGNAL
flag when callingsendmsg
, or any platform-specific equivalent, when available. These socket options and flags. achieve the same desired behavior but on a per-socket basis and do not require process-wide signal management.The text was updated successfully, but these errors were encountered: