|
//@ run-pass
|
|
//@ aux-build:sigpipe-utils.rs
|
|
//@ only-unix because SIGPIPE is a unix thing
|
|
|
|
fn main() {
|
|
extern crate sigpipe_utils;
|
|
|
|
// SIGPIPE shall be ignored since `-Zon-broken-pipe` is not used
|
|
sigpipe_utils::assert_sigpipe_handler(sigpipe_utils::SignalHandler::Ignore);
|
|
}
|