mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
13 lines
390 B
Rust
13 lines
390 B
Rust
//@ run-pass
|
|
//@ aux-build:sigpipe-utils.rs
|
|
//@ compile-flags: -Zon-broken-pipe=kill
|
|
//@ only-unix because SIGPIPE is a unix thing
|
|
|
|
fn main() {
|
|
extern crate sigpipe_utils;
|
|
|
|
// `-Zon-broken-pipe=kill` is active, so SIGPIPE shall NOT be ignored, instead
|
|
// the default handler shall be installed
|
|
sigpipe_utils::assert_sigpipe_handler(sigpipe_utils::SignalHandler::Default);
|
|
}
|