2024-02-09 01:47:47 -06:00
|
|
|
//@ revisions: with_feature without_feature
|
2022-07-05 12:56:22 -05:00
|
|
|
//@ run-pass
|
|
|
|
//@ aux-build:sigpipe-utils.rs
|
|
|
|
|
2024-02-09 01:47:47 -06:00
|
|
|
#![cfg_attr(with_feature, feature(unix_sigpipe))]
|
|
|
|
|
2022-07-05 12:56:22 -05:00
|
|
|
fn main() {
|
|
|
|
extern crate sigpipe_utils;
|
|
|
|
|
|
|
|
// SIGPIPE shall be ignored since #[unix_sigpipe = "..."] is not used
|
|
|
|
sigpipe_utils::assert_sigpipe_handler(sigpipe_utils::SignalHandler::Ignore);
|
|
|
|
}
|