summaryrefslogtreecommitdiff
path: root/src/sys/socket
diff options
context:
space:
mode:
authori509VCB <git@i509.me>2022-03-06 02:19:59 -0600
committeri509VCB <git@i509.me>2022-03-06 16:27:48 -0600
commita092c5ccc7c613b8149e98f85d0179ba01c73445 (patch)
tree7f4a90d826340beda191a038d43354361631a4e5 /src/sys/socket
parent9312f1c410e7390f9ccb9ea8f255e09b4bb2a0ee (diff)
downloadnix-a092c5ccc7c613b8149e98f85d0179ba01c73445.zip
Add MsgFlag::MSG_NOSIGNAL
Diffstat (limited to 'src/sys/socket')
-rw-r--r--src/sys/socket/mod.rs14
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;
}
}