sigpipe/
lib.rs

1
2#[cfg(unix)]
3pub fn reset() {
4    unsafe {
5        ::libc::signal(::libc::SIGPIPE, ::libc::SIG_DFL);
6    }
7}
8
9#[cfg(not(unix))]
10pub fn reset() {
11}