2024-02-09 08:47:47 +01:00
|
|
|
//@ revisions: with_feature without_feature
|
2022-07-05 19:56:22 +02:00
|
|
|
//@ run-pass
|
|
|
|
//@ aux-build:sigpipe-utils.rs
|
|
|
|
|
2024-02-09 08:47:47 +01:00
|
|
|
#![cfg_attr(with_feature, feature(unix_sigpipe))]
|
|
|
|
|
2022-07-05 19:56:22 +02: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);
|
|
|
|
}
|