diff --git a/lib/drmtest.c b/lib/drmtest.c index 76ddb95f..a90e2af4 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -967,8 +967,11 @@ static void fork_helper_exit_handler(int sig) kill(pid, SIGQUIT); waitpid(pid, &status, 0); + helper_process_count--; } } + + assert(helper_process_count == 0); } bool __igt_fork_helper(struct igt_helper_process *proc)