diff options
author | Imre Deak <imre.deak@intel.com> | 2017-10-13 14:30:08 +0300 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2017-10-16 13:35:36 +0300 |
commit | 40d6f19ff9c1d052c860365a98a8a074d5671142 (patch) | |
tree | c1d67948079af574a9546597e51a303dc94380d4 /lib/igt_aux.h | |
parent | fb3bdfff0e90c6d8b20b6b7b3e044d19efeab38f (diff) |
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 <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> (v1)
Diffstat (limited to 'lib/igt_aux.h')
-rw-r--r-- | lib/igt_aux.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |