lib/drmtest: make signal process cleanup more robust
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 12 Aug 2013 08:39:33 +0000 (10:39 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 12 Aug 2013 09:10:26 +0000 (11:10 +0200)
commita4038d3853b98707a803f5d1fb5c9ebe32f0b84b
treeabbe8a1b65836babb48782f10b495087bbd781e5
parent740065f0f9cd8f5add5520e6b3db6b02befee0a9
lib/drmtest: make signal process cleanup more robust

If we skip a test and and fail somewhere the parent might die before the
child. So add some cleanup to handle this case. Also make sure that the
parent indeed waits for the child to die.

This is required to make the latest version of the piglit runner happy,
it tends to wait for all zombies to disappear.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
lib/drmtest.c