Skip to content

Commit

Permalink
Add MsgFlag::MSG_NOSIGNAL
Browse files Browse the repository at this point in the history
  • Loading branch information
i509VCB committed Mar 6, 2022
1 parent 9312f1c commit 8e7697a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/sys/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,19 @@ 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 = "linux",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris"))]
#[cfg_attr(docsrs, doc(cfg(all())))]
MSG_NOSIGNAL;
}
}

Expand Down

0 comments on commit 8e7697a

Please sign in to comment.