Skip to content

Commit

Permalink
Merge #1670
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bors[bot] and i509VCB committed Mar 8, 2022
2 parents 41ec401 + a092c5c commit ff08ff7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
(#[1665](https://github.com/nix-rust/nix/pull/1665))
- Implemented `Read` and `Write` for `&PtyMaster`
(#[1664](https://github.com/nix-rust/nix/pull/1664))
- Added `MSG_NOSIGNAL` for Android, Dragonfly, FreeBSD, Fuchsia, Haiku, Illumos, Linux, NetBSD, OpenBSD and Solaris.
(#[1670](https://github.com/nix-rust/nix/pull/1670))

### Changed

Expand Down
14 changes: 14 additions & 0 deletions src/sys/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit ff08ff7

Please sign in to comment.