We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5309a3e commit 6132fb8Copy full SHA for 6132fb8
src/libstd/sys/unix/mod.rs
@@ -92,7 +92,7 @@ pub fn init() {
92
93
#[cfg(not(any(target_os = "nacl", target_os = "emscripten", target_os="fuchsia")))]
94
unsafe fn reset_sigpipe() {
95
- assert!(signal(libc::SIGPIPE, libc::SIG_IGN) != !0);
+ assert!(signal(libc::SIGPIPE, libc::SIG_IGN) != libc::SIG_ERR);
96
}
97
#[cfg(any(target_os = "nacl", target_os = "emscripten", target_os="fuchsia"))]
98
unsafe fn reset_sigpipe() {}
0 commit comments