From 57e67461812eb3a1c123e590b0cf08b885417732 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 10 Sep 2013 17:41:49 +0200 Subject: [PATCH] lib/drmtest: double-check that we clean up helper processes Signed-off-by: Daniel Vetter --- lib/drmtest.c | 3 +++ 1 file changed, 3 insertions(+) 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)