aboutsummaryrefslogtreecommitdiff
path: root/src/Program.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Program.cpp')
-rw-r--r--src/Program.cpp2
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;