diff options
| author | Rain <rain@oxide.computer> | 2024-07-27 02:06:58 +0000 |
|---|---|---|
| committer | Rain <rain@sunshowers.io> | 2024-07-27 02:10:24 +0000 |
| commit | 50d127e6ecb83f267fe35321eb14e536b959bb1d (patch) | |
| tree | 7663f0779c89e5d1ab344a28b17d53139d990b8a /compiler/rustc_codegen_llvm/src | |
| parent | 2d5a628a1de1d38318909a710ef37da6251e362e (diff) | |
| download | rust-50d127e6ecb83f267fe35321eb14e536b959bb1d.tar.gz rust-50d127e6ecb83f267fe35321eb14e536b959bb1d.zip | |
[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.)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
