[Issue 21649] Make D runtime ignore or handle SIGPIPE or document the behavior

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 19 16:55:44 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21649

Steven Schveighoffer <schveiguy at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at gmail.com

--- Comment #1 from Steven Schveighoffer <schveiguy at gmail.com> ---
I would suggest this be resolved as WONTFIX

As I said in the forums, ignoring SIGPIPE is a process-wide setting, not
suitable for all environments, so D should not be doing this to intialize the
runtime.

2 examples come to mind:

- starting a child process will inherit the signal ignoring, which means you
alter the default behavior of those processes (which may depend on SIGPIPE
being triggered)
- Other libraries might depend on SIGPIPE not being ignored.

I think the correct mechanism is to manually ignore the signal on program
startup if that is your preference.

--


More information about the Digitalmars-d-bugs mailing list