diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-03-08 23:46:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 23:46:46 +0000 |
commit | ff08ff7732f6410b733b781ac3dd8be8f83ec6a5 (patch) | |
tree | 1a0b0bb38f0ab295497f6404cbf4a80604eda528 /src | |
parent | 41ec4012714f3e89ffd3f18d80249a8ad351b439 (diff) | |
parent | a092c5ccc7c613b8149e98f85d0179ba01c73445 (diff) | |
download | nix-ff08ff7732f6410b733b781ac3dd8be8f83ec6a5.zip |
Merge #1670
1670: Add `MsgFlag::MSG_NOSIGNAL` r=rtzoeller a=i509VCB
(I guess I will see if I did the cfg block correctly)
Co-authored-by: i509VCB <git@i509.me>
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/socket/mod.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index 54327951..9c37e43b 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -316,6 +316,20 @@ libc_bitflags!{ target_os = "openbsd"))] #[cfg_attr(docsrs, doc(cfg(all())))] MSG_CMSG_CLOEXEC; + /// Requests not to send `SIGPIPE` errors when the other end breaks the connection. + /// (For more details, see [send(2)](https://linux.die.net/man/2/send)). + #[cfg(any(target_os = "android", + target_os = "dragonfly", + target_os = "freebsd", + target_os = "fuchsia", + target_os = "haiku", + target_os = "illumos", + target_os = "linux", + target_os = "netbsd", + target_os = "openbsd", + target_os = "solaris"))] + #[cfg_attr(docsrs, doc(cfg(all())))] + MSG_NOSIGNAL; } } |