mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
14 lines
360 B
Rust
14 lines
360 B
Rust
// run-pass
|
|
// aux-build:sigpipe-utils.rs
|
|
|
|
#![feature(unix_sigpipe)]
|
|
|
|
#[unix_sigpipe = "sig_dfl"]
|
|
fn main() {
|
|
extern crate sigpipe_utils;
|
|
|
|
// #[unix_sigpipe = "sig_dfl"] is active, so SIGPIPE shall NOT be ignored, instead
|
|
// the default handler shall be installed
|
|
sigpipe_utils::assert_sigpipe_handler(sigpipe_utils::SignalHandler::Default);
|
|
}
|