mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-06 18:04:49 +00:00
14 lines
341 B
Rust
14 lines
341 B
Rust
// run-pass
|
|
// aux-build:sigpipe-utils.rs
|
|
|
|
#![feature(unix_sigpipe)]
|
|
|
|
#[unix_sigpipe = "sig_ign"]
|
|
fn main() {
|
|
extern crate sigpipe_utils;
|
|
|
|
// #[unix_sigpipe = "sig_ign"] is active, so the legacy behavior of ignoring
|
|
// SIGPIPE shall be in effect
|
|
sigpipe_utils::assert_sigpipe_handler(sigpipe_utils::SignalHandler::Ignore);
|
|
}
|