Handles the masked signal when the thread exits
Gibeom Gwon
gb.gwon@stackframe.dev
Thu Nov 18 18:11:42 GMT 2021
On 11/19/21 03:08, Florian Weimer wrote:
> * Gibeom Gwon:
>
>> I am experiencing strange(unintended?) behavior when using pthread
>> with signals. If I set the signal mask with pthread_sigmask() in the
>> thread function and the process has pending signal when thread is
>> exiting, signal handler executed in thread.
>>
>> It looks like glibc restores original signal mask at the end of the
>> thread. So I suspect this eventually triggers masked signal
>> handler. But I'm not sure it is intended or not.
>
> Which glibc version are you using?
>
> Thanks,
> Florian
>
Ah, I forgot to write the version. I'm using 2.33 and linux distribution
is Arch Linux.
More information about the Libc-help
mailing list