summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-11-09 18:00:51 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2020-12-13 12:01:30 +0000
commitb57d4c6453defb16a116b69e0c4e485dcbfabf7f (patch)
tree330d767ebcd2aa546dcdc0d4268663584b894e64
parent0075e424e69e95a7d8b8b6485682b1c94c51f9a5 (diff)
lib: Ignore runner's SIGQUIT from fork helpers
We would rather not confuse our debug output with simultaneous delivery of SIGQUIT to the helper processes, leaving the parent to handle SIGQUIT and kill the children. (If the parent is unable to quit, then it and the children will be killed by the runner.) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--lib/igt_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_core.c b/lib/igt_core.c
index 8f9d925b..a9c392d0 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -2191,6 +2191,7 @@ bool __igt_fork_helper(struct igt_helper_process *proc)
exit_handler_count = tmp_count;
igt_assert(0);
case 0:
+ signal(SIGQUIT, SIG_IGN);
reset_helper_process_list();
oom_adjust_for_doom();