[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] [PATCH] Fix signal race condition
From: |
Giuseppe Scrivano |
Subject: |
Re: [Bug-wget] [PATCH] Fix signal race condition |
Date: |
Tue, 09 Aug 2016 17:40:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hi Tobias,
Tobias Stoeckmann <address@hidden> writes:
> - signal (SIGALRM, abort_run_with_timeout);
> if (SETJMP (run_with_timeout_env) != 0)
> {
> /* Longjumped out of FUN with a timeout. */
> signal (SIGALRM, SIG_DFL);
> return true;
> }
> + else
> + {
> + signal (SIGALRM, abort_run_with_timeout);
> + }
> alarm_set (timeout);
> fun (arg);
Looks fine to me.
I have added a line to the commit message and pushed your patch.
Thanks,
Giuseppe