summaryrefslogtreecommitdiff
path: root/runner
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-06-14 11:08:15 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-06-24 13:18:22 +0300
commit9dbef435f3de55cc80ec7b4334ee6c3c802f7a43 (patch)
treebf2921e7f481b96427d1b7678fb900d363235199 /runner
parent288fd5c092a6438fe97db84504a3c461af13027e (diff)
runner: Handle SIGHUP too
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@intel.com> Reviewed-by: Simon Ser <simon.ser@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'runner')
-rw-r--r--runner/executor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/runner/executor.c b/runner/executor.c
index e562d5b2..cc313dec 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);