[igt-dev] [PATCH i-g-t 2/3] runner: Handle SIGHUP too

Arkadiusz Hiler arkadiusz.hiler at intel.com
Fri Jun 14 08:08:15 UTC 2019


Default handler for SIGHUP is also terminating the process, so let's
mask it and handle it manually, like the rest of the bunch.

Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
---
 runner/executor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/runner/executor.c b/runner/executor.c
index f9c69fef..6b171c12 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -950,6 +950,7 @@ static int execute_next_entry(struct execute_state *state,
 	sigaddset(&mask, SIGINT);
 	sigaddset(&mask, SIGTERM);
 	sigaddset(&mask, SIGQUIT);
+	sigaddset(&mask, SIGHUP);
 	sigprocmask(SIG_BLOCK, &mask, NULL);
 	sigfd = signalfd(-1, &mask, O_CLOEXEC);
 
-- 
2.21.0



More information about the igt-dev mailing list