[Lldb-commits] [lldb] fea52ac - [lldb/test] Use SIGINT as the "stopping" signal

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Sun Jul 10 23:42:40 PDT 2022


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.


        


More information about the lldb-commits mailing list