Files
rust/library/std/src
Rain 50d127e6ec [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.)
2024-07-27 02:10:24 +00:00
..
2023-12-10 10:56:22 +08:00
2023-12-10 10:56:22 +08:00
2023-08-13 13:07:53 -06:00
2024-07-19 12:23:49 -04:00
2024-07-19 12:23:49 -04:00
2024-01-11 11:30:12 -05:00
2024-07-15 05:01:22 +00:00
2023-05-03 22:09:33 -07:00
2024-05-01 21:01:51 -04:00
2024-07-12 11:52:04 -04:00
2024-04-08 11:57:17 +00:00
2024-03-07 07:49:22 +01:00