mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
14 lines
368 B
Rust
14 lines
368 B
Rust
|
// run-pass
|
||
|
// aux-build:sigpipe-utils.rs
|
||
|
|
||
|
#![feature(unix_sigpipe)]
|
||
|
|
||
|
fn main() {
|
||
|
extern crate sigpipe_utils;
|
||
|
|
||
|
// Only #![feature(unix_sigpipe)] is enabled, not #[unix_sigpipe = "..."].
|
||
|
// This shall not change any behavior, so we still expect SIGPIPE to be
|
||
|
// ignored
|
||
|
sigpipe_utils::assert_sigpipe_handler(sigpipe_utils::SignalHandler::Ignore);
|
||
|
}
|