Skip to content

env: ignoring SIGPIPE not working #9617

@Ecordonnier

Description

@Ecordonnier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions