[PATCH] D53000: [Support] exit with custom return code for SIGPIPE
David Majnemer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 8 15:59:17 PDT 2018
majnemer added inline comments.
================
Comment at: lib/Support/Unix/Signals.inc:339
+ if (Sig == SIGPIPE)
+ exit(71);
+
----------------
jfb wrote:
> Can you make this number non-magical by defining it somewhere in a header file, and using it here as well as in clang?
It might be good to use `EX_IOERR` as defined by sysexits.h aka 74 for this purpose.
Repository:
rL LLVM
https://reviews.llvm.org/D53000
More information about the llvm-commits
mailing list