[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.
This commit is contained in:
Pavel Labath 2022-07-11 08:37:58 +02:00
parent 3f68f0f816
commit fea52ac541
1 changed files with 1 additions and 1 deletions

View File

@ -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.