lib: fix the assert in igt_stop_helper

So much for developing different patches on different machines and
then not retesting after rebasing. Reported by Ben on irc.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2013-10-18 17:53:05 +02:00
parent 768e32a3ab
commit 5038b7e4c2

View File

@ -1085,7 +1085,8 @@ void igt_stop_helper(struct igt_helper_process *proc)
while (waitpid(proc->pid, &status, 0) == -1 &&
errno == -EINTR)
;
igt_assert(WIFSIGNALED(status) && WTERMSIG(status) == SIGQUIT);
igt_assert(WIFSIGNALED(status) &&
WTERMSIG(status) == (proc->use_SIGKILL ? SIGKILL : SIGQUIT));
proc->running = false;