[PATCH] D142224: [Support] Emulate SIGPIPE handling in raw_fd_ostream write for Windows

Andrew Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 8 07:57:49 PST 2023


andrewng added inline comments.


================
Comment at: llvm/lib/Support/Windows/Signals.inc:832
+  int RetCode = (int)EP->ExceptionRecord->ExceptionCode;
+  if (RetCode == (0xE0000000 | EX_IOERR))
+    return;
----------------
mstorsjo wrote:
> Do you have any reference for/comment about what `0xE0000000` is here?
The constant is used in `CrashRecoveryContext::HandleExit()` to raise an exception on Windows. I'll add a comment.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142224/new/

https://reviews.llvm.org/D142224



More information about the llvm-commits mailing list