From 40d6f19ff9c1d052c860365a98a8a074d5671142 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Fri, 13 Oct 2017 14:30:08 +0300 Subject: aux: Suspend signal helper for shell commands The clone() system call with a larger executable (like /bin/sh) may have difficulty to make progress on some platforms if interrupted frequently. So suspend the signal helper process for the duration of the syscall. This is needed to solve an actual problem by the next patch. v2: - Clarify/fix code comments. (Chris) - Update igt_system_quiet() as well accordingly. Cc: Chris Wilson Cc: Daniel Vetter Signed-off-by: Imre Deak Reviewed-by: Chris Wilson (v1) --- lib/igt_aux.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/igt_aux.h') diff --git a/lib/igt_aux.h b/lib/igt_aux.h index 499a1679..688ad1b8 100644 --- a/lib/igt_aux.h +++ b/lib/igt_aux.h @@ -55,6 +55,8 @@ extern int num_trash_bos; /* generally useful helpers */ void igt_fork_signal_helper(void); void igt_stop_signal_helper(void); +void igt_suspend_signal_helper(void); +void igt_resume_signal_helper(void); void igt_fork_shrink_helper(int fd); void igt_stop_shrink_helper(void); -- cgit v1.2.3