Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[illumos/solaris] set MSG_NOSIGNAL while writing to sockets #128259

Merged
merged 1 commit into from
Jul 27, 2024

Commits on Jul 27, 2024

  1. [illumos/solaris] set MSG_NOSIGNAL while writing to sockets

    Both these platforms have MSG_NOSIGNAL available, and we should set it for
    socket writes in the event that the SIGPIPE handler has been reset to SIG_DFL
    (i.e. terminate the process).
    
    I've verified via a quick program at
    https://github.com/sunshowers/msg-nosignal-test/ that even when the SIGPIPE
    handler is reset to SIG_DFL, writes to closed sockets now error out with EPIPE.
    (Under ordinary circumstances UDP writes won't cause MSG_NOSIGNAL.)
    sunshowers committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    50d127e View commit details
    Browse the repository at this point in the history