Support #[unix_sigpipe = "inherit|sig_dfl|sig_ign"]
on fn main()
This makes it possible to instruct libstd to never touch the signal handler for `SIGPIPE`, which makes programs pipeable by default (e.g. with `./your-program | head -n 1`) without `ErrorKind::BrokenPipe` errors.
This commit is contained in:
parent
ee285eab69
commit
ddee45e1d7
46 changed files with 449 additions and 43 deletions
|
@ -819,6 +819,7 @@ symbols! {
|
|||
infer_outlives_requirements,
|
||||
infer_static_outlives_requirements,
|
||||
inherent_associated_types,
|
||||
inherit,
|
||||
inlateout,
|
||||
inline,
|
||||
inline_const,
|
||||
|
@ -1301,6 +1302,8 @@ symbols! {
|
|||
should_panic,
|
||||
shr,
|
||||
shr_assign,
|
||||
sig_dfl,
|
||||
sig_ign,
|
||||
simd,
|
||||
simd_add,
|
||||
simd_and,
|
||||
|
@ -1519,6 +1522,7 @@ symbols! {
|
|||
unit,
|
||||
universal_impl_trait,
|
||||
unix,
|
||||
unix_sigpipe,
|
||||
unlikely,
|
||||
unmarked_api,
|
||||
unpin,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue