Commit 6f118bf9 authored by Daniel Vetter's avatar Daniel Vetter

lib/drmtest: Improve output when igt_waitchildren fails

Signed-off-by: Daniel Vetter's avatarDaniel Vetter <>
parent 8eaa0982
......@@ -1001,15 +1001,19 @@ void igt_waitchildren(void)
if (status != 0) {
if (WIFEXITED(status))
if (WIFEXITED(status)) {
printf("child %i failed with exit status %i\n",
nc, WEXITSTATUS(status));
else if (WIFSIGNALED(status)) {
} else if (WIFSIGNALED(status)) {
printf("child %i died with signal %i, %s\n",
nc, WTERMSIG(status),
} else
} else {
printf("Unhandled failure in child %i\n", nc);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment