igt/gem_ctx_thread/processes: Serialise after forking children

Play nice, especially with the subtest, and wait for the children to
exit before finishing the test. If we don't we end up with a fork bomb
for some unknown reason...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-12-18 16:20:10 +00:00
parent 9f389d00cf
commit 4bde754349

View File

@ -219,6 +219,7 @@ processes(void)
drm_intel_bufmgr_destroy(bufmgr);
}
}
igt_waitchildren();
for (n = 0; n < num_ctx; n++)
close(all_fds[n]);