Wait for any pid in order to reap failure quicker
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 Jul 2014 09:15:19 +0000 (10:15 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 Jul 2014 09:41:28 +0000 (10:41 +0100)
commitf47ee31dd5d5a5099ed6f5d4a59a12a2f83c8cae
tree8e36f42d42e9a50df109f47fe2e99c078edff487
parent3777d42303cf9d285a5337d71623d52402cb3021
Wait for any pid in order to reap failure quicker

When waiting for the forked tests, we can respond quicker to a failure
(such as oom) by waiting for any child to exit rather than waiting for
each child in order. Then when we see that a test failed, we can kill
all other children before aborting.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
lib/igt_core.c