Skip to content

Commit

Permalink
[lldb/test] Use SIGINT as the "stopping" signal
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
labath committed Jul 11, 2022
1 parent 3f68f0f commit fea52ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/test/API/tools/lldb-server/main.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit fea52ac

Please sign in to comment.