[PATCH] D79847: [Support] On Windows, handle interrupt signals without crash message

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 20 15:27:34 PDT 2020


MaskRay added a comment.

> On Linux, the signal handlers are not run on signals such as SIGINT due to CTRL-C.

That is the default behavior on a *NIX platform: on SIGINT, unregister the handler and call `raise(SIGINT)` to let the kernel terminate the process.

If a callback is registered via `llvm::sys::SetInterruptFunction` (used by bugpoint and clangd), that callback will run instead.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79847





More information about the llvm-commits mailing list