This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/2] linux: Reserve a new signal for SIGTIMER
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 3 Jan 2020 14:19:24 -0300
- Subject: Re: [PATCH 1/2] linux: Reserve a new signal for SIGTIMER
- References: <20191231193129.2590-1-adhemerval.zanella@linaro.org> <871rskl1uj.fsf@mid.deneb.enyo.de>
On 31/12/2019 16:41, Florian Weimer wrote:
> * Adhemerval Zanella:
>
>> The fix for BZ#10815 requires decouple SIGTIMER and SIGCANCEL.
>
> How so? I don't see why, sorry.
>
Indeed 'requires' is not the right word, since I added this patch to
solve a different problem. What about:
--
To simplify the fix for BZ#10815 SIGTIMER and SIGCANCEL are decoupled.
It allow simplify the SIGCANCEL handler, since there is no need to
check if the signal is really a cancellation one; and the thread created
SIGEV_THREAD does not need to unblock SIGCANCEL at start.
This patch also a new internal symbol, __contain_internal_signal, which
checks if the sigset_t contains any internal signal. It is used to
refactor and move the logic to check and remove the internal signal
to internal-signals.h.
Checked on x86_64-linux-gnu and i686-linux-gnu.