We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rustc_driver::set_sigpipe_handler()
1 parent 85d089b commit 43e1745Copy full SHA for 43e1745
compiler/rustc_driver/src/lib.rs
@@ -427,18 +427,6 @@ fn run_compiler(
427
})
428
}
429
430
-#[cfg(unix)]
431
-pub fn set_sigpipe_handler() {
432
- unsafe {
433
- // Set the SIGPIPE signal handler, so that an EPIPE
434
- // will cause rustc to terminate, as expected.
435
- assert_ne!(libc::signal(libc::SIGPIPE, libc::SIG_DFL), libc::SIG_ERR);
436
- }
437
-}
438
-
439
-#[cfg(windows)]
440
-pub fn set_sigpipe_handler() {}
441
442
// Extract output directory and file from matches.
443
fn make_output(matches: &getopts::Matches) -> (Option<PathBuf>, Option<PathBuf>) {
444
let odir = matches.opt_str("out-dir").map(|o| PathBuf::from(&o));
0 commit comments