Rework how action SIG_HOLD is handled in ptsignal.
authorclaudio <claudio@openbsd.org>
Wed, 8 May 2024 13:05:33 +0000 (13:05 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 8 May 2024 13:05:33 +0000 (13:05 +0000)
commit0e44f21de67de789f535611ae75a41e67fdb8d09
treee7cc3213992f9435b4eca9f861a577d8e1d15645
parent652f3531c50b1870271ce5e3d3613f6597e0e5ca
Rework how action SIG_HOLD is handled in ptsignal.

Since we want to unlock sigsuspend, ptsignal needs to double check in the
SSLEEP case that the signal being delivered is still masked or unmasked.
Remove the early return for action SIG_HOLD so that the SSLEEP case can
properly recheck the sigmask.

On top of this update siglist only in one place at the end of ptsignal
this now includes the clearing of signals for the SA_CONT and SA_STOP
cases.

OK mpi@
sys/kern/kern_sig.c