mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
15 lines
447 B
Rust
15 lines
447 B
Rust
//@ run-pass
|
|
//@ aux-build:sigpipe-utils.rs
|
|
|
|
#![feature(unix_sigpipe)]
|
|
|
|
#[unix_sigpipe = "inherit"]
|
|
fn main() {
|
|
extern crate sigpipe_utils;
|
|
|
|
// #[unix_sigpipe = "inherit"] is active, so SIGPIPE shall NOT be ignored,
|
|
// instead the default handler shall be installed. (We assume that the
|
|
// process that runs these tests have the default handler.)
|
|
sigpipe_utils::assert_sigpipe_handler(sigpipe_utils::SignalHandler::Default);
|
|
}
|