From: "Ser, Simon" <simon.ser@intel.com>
To: "Hiler, Arkadiusz" <arkadiusz.hiler@intel.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t 2/3] runner: Handle SIGHUP too
Date: Fri, 14 Jun 2019 08:20:40 +0000 [thread overview]
Message-ID: <ade79e362741ef0c8e04b2f820310cd448ebd6ba.camel@intel.com> (raw)
In-Reply-To: <20190614080816.12464-2-arkadiusz.hiler@intel.com>
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@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@intel.com>
> sigprocmask(SIG_BLOCK, &mask, NULL);
> sigfd = signalfd(-1, &mask, O_CLOEXEC);
>
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-06-14 8:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-14 8:08 [igt-dev] [PATCH i-g-t 1/3] runner: Log when watchdog handling fails Arkadiusz Hiler
2019-06-14 8:08 ` [igt-dev] [PATCH i-g-t 2/3] runner: Handle SIGHUP too Arkadiusz Hiler
2019-06-14 8:20 ` Ser, Simon [this message]
2019-06-14 8:08 ` [igt-dev] [PATCH i-g-t 3/3] runner: Log which signal was used to terminate the runner Arkadiusz Hiler
2019-06-14 8:21 ` Ser, Simon
2019-06-14 8:16 ` [igt-dev] [PATCH i-g-t 1/3] runner: Log when watchdog handling fails Ser, Simon
2019-06-14 10:05 ` Petri Latvala
2019-06-14 21:00 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/3] " Patchwork
2019-06-15 13:07 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ade79e362741ef0c8e04b2f820310cd448ebd6ba.camel@intel.com \
--to=simon.ser@intel.com \
--cc=arkadiusz.hiler@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox