Re: [igt-dev] [PATCH i-g-t 7/9] lib: Make sure we leak no child processes

Chris Wilson
2019-02-11T21:06:53Z

Quoting Daniel Vetter (2019-02-11 18:02:06)
> @@ -1527,6 +1529,8 @@ void igt_exit(void)
> kill(test_children[c], SIGKILL);
> assert(!num_test_children);
>
> + assert(wait(&tmp) == -1 && errno == ECHILD);

Turning a previous failedsafe "bug" into an infinite wait.
assert(waitpid(-1, &tmp, WNOHANG) == -1 && errno == ECHILD);
-Chris