llvm-project/lldb/tools
Adrian McCarthy 6c84ffbf5f Fix the SIGINT handlers
1. Fix a data race (g_interrupt_sent flag usage was not thread safe, signals
can be handled on arbitrary threads)

2. exit() is not signal-safe, replaced it with the signal-safe equivalent
_exit()

(This differs from the patch on Phabrictor because I had to add
`#include <atomic>` to get the definition of `std::atomic_flag`.)

patch by lemo

Differential Revision: https://reviews.llvm.org/D37926

llvm-svn: 313785
2017-09-20 18:09:39 +00:00
..
argdumper lldb-argdumper doesn't need lldbCore. 2017-08-21 22:54:49 +00:00
compact-unwind *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
darwin-debug [CMake] Refactor LLDB libraries and tools to be components 2016-12-15 22:01:17 +00:00
darwin-threads *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
debugserver [CMake] Need to set WITH_LOCKDOWN on debugserver target 2017-09-06 20:15:43 +00:00
driver Fix the SIGINT handlers 2017-09-20 18:09:39 +00:00
install-headers add back an Xcode-specific Makefile for header installation 2016-01-28 22:34:36 +00:00
intel-features Checking in files accidentally missed in later diffs of revision r310261 2017-08-08 09:25:50 +00:00
lldb-mi Fix the SIGINT handlers 2017-09-20 18:09:39 +00:00
lldb-perf Make lldb -Werror clean for -Wstring-conversion 2017-01-06 00:38:06 +00:00
lldb-server Remove shared pointer from NativeProcessProtocol 2017-07-18 09:24:48 +00:00
CMakeLists.txt Tool for using Intel(R) Processor Trace hardware feature 2017-08-07 15:26:11 +00:00