]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #101077 - sunshowers:signal-mask-inherit, r=sunshowers
authorbors <bors@rust-lang.org>
Fri, 21 Oct 2022 18:09:03 +0000 (18:09 +0000)
committerbors <bors@rust-lang.org>
Fri, 21 Oct 2022 18:09:03 +0000 (18:09 +0000)
Change process spawning to inherit the parent's signal mask by default

Previously, the signal mask was always reset when a child process is
started. This breaks tools like `nohup` which expect `SIGHUP` to be
blocked for all transitive processes.

With this change, the default behavior changes to inherit the signal mask.

This also changes the signal disposition for `SIGPIPE` to only be changed if the `#[unix_sigpipe]` attribute isn't set.


No differences found