[igt-dev] [PATCH i-g-t 2/3] runner: Handle SIGHUP too
Ser, Simon
simon.ser at intel.com
Fri Jun 14 08:20:40 UTC 2019
On Fri, 2019-06-14 at 11:08 +0300, Arkadiusz Hiler wrote:
> 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);
Note to self: handled in the else block on line 724.
Reviewed-by: Simon Ser <simon.ser at intel.com>
> sigprocmask(SIG_BLOCK, &mask, NULL);
> sigfd = signalfd(-1, &mask, O_CLOEXEC);
>
More information about the igt-dev
mailing list