[PATCH] D64046: [windows] re-call signal in sigint_handler for Windows

Nathan Lanza via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 21:43:39 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL365868: [windows] re-call signal in sigint_handler for Windows (authored by lanza, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rL LLVM

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

https://reviews.llvm.org/D64046

Files:
  lldb/trunk/tools/driver/Driver.cpp


Index: lldb/trunk/tools/driver/Driver.cpp
===================================================================
--- lldb/trunk/tools/driver/Driver.cpp
+++ lldb/trunk/tools/driver/Driver.cpp
@@ -706,6 +706,9 @@
 }
 
 void sigint_handler(int signo) {
+#ifdef _WIN32 // Restore handler as it is not persistent on Windows
+  signal(SIGINT, sigint_handler);
+#endif
   static std::atomic_flag g_interrupt_sent = ATOMIC_FLAG_INIT;
   if (g_driver != nullptr) {
     if (!g_interrupt_sent.test_and_set()) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64046.209412.patch
Type: text/x-patch
Size: 498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190712/28cebb2d/attachment.bin>


More information about the llvm-commits mailing list