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

Chris Wilson chris at chris-wilson.co.uk
Mon Feb 11 21:06:40 UTC 2019


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


More information about the igt-dev mailing list