]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/attributes/unix_sigpipe/unix_sigpipe-inherit.rs
2 // aux-build:sigpipe-utils.rs
4 #![feature(unix_sigpipe)]
6 #[unix_sigpipe = "inherit"]
8 extern crate sigpipe_utils
;
10 // #[unix_sigpipe = "inherit"] is active, so SIGPIPE shall NOT be ignored,
11 // instead the default handler shall be installed. (We assume that the
12 // process that runs these tests have the default handler.)
13 sigpipe_utils
::assert_sigpipe_handler(sigpipe_utils
::SignalHandler
::Default
);