2024-02-16 14:02:50 -06:00
|
|
|
//@ run-pass
|
|
|
|
//@ aux-build:sigpipe-utils.rs
|
2022-07-05 12:56:22 -05:00
|
|
|
|
|
|
|
#![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);
|
|
|
|
}
|