[igt-dev] [PATCH i-g-t] lib: Ignore runner's SIGQUIT from fork helpers

Chris Wilson chris at chris-wilson.co.uk
Mon Nov 9 18:03:59 UTC 2020


We would rather not confuse our debug our without 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 at chris-wilson.co.uk>
---
 lib/igt_core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/igt_core.c b/lib/igt_core.c
index 8f9d925bd..a9c392d0d 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();
 
-- 
2.29.2



More information about the igt-dev mailing list