[PATCH] D53001: [Driver] check for exit code from SIGPIPE

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 12 11:44:31 PDT 2018


nickdesaulniers added inline comments.


================
Comment at: cfe/trunk/lib/Driver/Driver.cpp:81-85
+#include <sysexits.h>
 #include <utility>
 #if LLVM_ON_UNIX
 #include <unistd.h> // getpid
 #endif
----------------
@rnk || @majnemer thoughts on making this:

```
#if LLVM_ON_UNIX
​#include <unistd.h> // getpid
#include <sysexits.h> // EX_IOERR
#else
#define EX_IOERR 74
​#endif
```

vs also guarding the check I added on L1409 with `#if LLVM_ON_UNIX`?


Repository:
  rL LLVM

https://reviews.llvm.org/D53001





More information about the cfe-commits mailing list