-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Description
After #9614 there is a regression in env: ignoring SIGPIPE doesn't work any more, because the rust implementation of Command::exec() resets the SIGPIPE signal handler to its default handler (see https://github.com/rust-lang/rust/blob/c61a3a44d1a5bee35914cada6c788a05e0808f5b/library/std/src/sys/process/unix/unix.rs#L368 ).
This will be fixed in rust at some point ( see rust-lang/rust#97889 (comment) , rust-lang/rust#62569 , etc.) however with current stable rust version there is no way to make it work with Command::exec().
#9614 needs to be reverted, and a regression-tests added.
See also #8919 which is related