summaryrefslogtreecommitdiff
path: root/src/thread/sem_open.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2024-12-13 11:31:40 +0000
committerRich Felker <dalias@aerifal.cx>2024-12-13 11:31:40 +0000
commit47fa6e4fcc5f61c365c91a9bc90e7ed8b3a178ef (patch)
treee0a4e4858f0d2f193a7557be7ed11ed03d866e3d /src/thread/sem_open.c
parent61399d4bd02ae1ec03068445aa7ffe9174466bfd (diff)
downloadmusl-47fa6e4fcc5f61c365c91a9bc90e7ed8b3a178ef.tar.gz
SIGEV_THREAD timers: fix fatal signal if internal SIGTIMER becomes unblocked
commit 6ae2568bc2367b4d47e0ea1cb043fd56e697912f introduced a fatal signal condition if the internal timer signal used for SIGEV_THREAD timers is unblocked. this can happen whenever the application alters the signal mask with SIG_SETMASK, since sigset_t objects never include the bits used for implementation-internal signals. this patch effectively reverts the breakage by adding back a no-op signal handler. overruns will not be accounted if the timer signal becomes unblocked, but POSIX does not specify them except for SIGEV_SIGNAL timers anyway.
Diffstat (limited to 'src/thread/sem_open.c')
0 files changed, 0 insertions, 0 deletions