[PATCH 1/2] linux: Reserve a new signal for SIGTIMER

Adhemerval Zanella adhemerval.zanella@linaro.org
Fri Jan 3 17:19:00 GMT 2020



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.



More information about the Libc-alpha mailing list