Author: Pavel Labath Date: 2022-07-11T08:42:17+02:00 New Revision: fea52ac541f5973d01a6813475bca08ebe1f1e9b
URL: https://github.com/llvm/llvm-project/commit/fea52ac541f5973d01a6813475bca08ebe1f1e9b DIFF: https://github.com/llvm/llvm-project/commit/fea52ac541f5973d01a6813475bca08ebe1f1e9b.diff LOG: [lldb/test] Use SIGINT as the "stopping" signal Using SIGSTOP means that if anything goes wrong in the test, the process can end up in the stopped state, where it is not running, but still taking up resources. Eventually, these "zombies" can make the machine completely unusable. Instead, use a signal whose default action is to kill the processes. Added: Modified: lldb/test/API/tools/lldb-server/main.cpp Removed: ################################################################################ diff --git a/lldb/test/API/tools/lldb-server/main.cpp b/lldb/test/API/tools/lldb-server/main.cpp index 36ad21c4fedf..21e46ef4e1b6 100644 --- a/lldb/test/API/tools/lldb-server/main.cpp +++ b/lldb/test/API/tools/lldb-server/main.cpp @@ -355,7 +355,7 @@ int main(int argc, char **argv) { trap(); #if !defined(_WIN32) } else if (arg == "stop") { - raise(SIGSTOP); + raise(SIGINT); #endif } else { // Treat the argument as text for stdout. _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits