diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-01-08 20:02:15 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-01-08 20:02:15 +0100 |
commit | 4603af2492b7d11f66f8c03e1b38b1429eaf799e (patch) | |
tree | 688d14acde0b977d227f6bed594ce474237148ce /src/Program.cpp | |
parent | a02c4f829a9d4321c7fd10812f1ef77795405520 (diff) |
waitpid after kill
Diffstat (limited to 'src/Program.cpp')
-rw-r--r-- | src/Program.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Program.cpp b/src/Program.cpp index c82476e..de30e4f 100644 --- a/src/Program.cpp +++ b/src/Program.cpp @@ -97,6 +97,8 @@ public: } if(it->second.program.pid != -1) { kill(it->second.program.pid, SIGTERM); + int status; + waitpid(it->second.program.pid, &status, 0); it->second.program.pid = -1; } it->second.killed = true; |