From 4bde75434999568db4868adfcdc9f93fcb7c49c4 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 18 Dec 2014 16:20:10 +0000 Subject: [PATCH] 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 --- tests/gem_ctx_thrash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/gem_ctx_thrash.c b/tests/gem_ctx_thrash.c index aecbc567..a351bb9d 100644 --- a/tests/gem_ctx_thrash.c +++ b/tests/gem_ctx_thrash.c @@ -219,6 +219,7 @@ processes(void) drm_intel_bufmgr_destroy(bufmgr); } } + igt_waitchildren(); for (n = 0; n < num_ctx; n++) close(all_fds[n]);