3 ms·
Does the POSIX standard mandate that programs receiving EPIPE/SIGPIPE die silently? https://pubs.opengroup.org/onlinepubs/7908799/xsh/signal.h.html https://pub
by userbinator 7y ago
Does the POSIX standard mandate that programs receiving EPIPE/SIGPIPE die silently?
https://pubs.opengroup.org/onlinepubs/7908799/xsh/signal.h.html https://pubs.opengroup.org/onlinepubs/7908799/xsh/signal.h.h...
Yes. The default action of SIGPIPE is to terminate the process.
- deleted 7y ago[deleted]
- loeg 7y agoThe standard just specifies that (a) SIGPIPE exists, (b) when it should be raised by the OS, and (c) what the default action is. It does not specify that programs that mask or block or handle SIGPIPE/EPIPE must be silent when they do so.