summaryrefslogtreecommitdiffstats
path: root/src/run.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/run.c')
-rw-r--r--src/run.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/run.c b/src/run.c
index 6465699..09e2ae9 100644
--- a/src/run.c
+++ b/src/run.c
@@ -25,6 +25,7 @@
#include "alarm.h"
#include "fds.h"
#include "traffic_stats.h"
+#include "process.h"
#include <errno.h>
#include <signal.h>
@@ -77,6 +78,9 @@ static void child(int foo)
STATE(stats).wait_failed++;
break;
}
+ /* delete process from list and run the callback */
+ fork_process_delete(ret);
+
if (!WIFSIGNALED(status))
continue;