diff options
author | Rich Felker <dalias@aerifal.cx> | 2020-10-14 19:04:19 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-10-14 20:27:12 -0400 |
commit | 6ae2568bc2367b4d47e0ea1cb043fd56e697912f (patch) | |
tree | 35f6ef7d964cd6727aa98ff31b6f268909724f33 /src/time/timer_create.c | |
parent | 47baa0301ffc18e62239588a521440dede3adb7e (diff) | |
download | musl-6ae2568bc2367b4d47e0ea1cb043fd56e697912f.tar.gz musl-6ae2568bc2367b4d47e0ea1cb043fd56e697912f.tar.bz2 musl-6ae2568bc2367b4d47e0ea1cb043fd56e697912f.tar.xz musl-6ae2568bc2367b4d47e0ea1cb043fd56e697912f.zip |
remove unused SIGTIMER handler in timer_create
this was leftover from when the actual SIGEV_THREAD timer logic was in
the signal handler. commit 5b74eed3b301e2227385f3bf26d3bb7c2d822cf8
replaced that with use of sigwaitinfo, with the actual signal left
blocked, so the no-op signal handler was no longer serving any
purpose.
the signal disposition reset to SIG_DFL is still needed, however, in
case we inherited SIG_IGN from a foreign-libc process.
Diffstat (limited to 'src/time/timer_create.c')
-rw-r--r-- | src/time/timer_create.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/time/timer_create.c b/src/time/timer_create.c index 455d49fc..2b1ea170 100644 --- a/src/time/timer_create.c +++ b/src/time/timer_create.c @@ -32,15 +32,10 @@ static void cleanup_fromsig(void *p) longjmp(p, 1); } -static void timer_handler(int sig, siginfo_t *si, void *ctx) -{ -} - static void install_handler() { struct sigaction sa = { - .sa_sigaction = timer_handler, - .sa_flags = SA_SIGINFO | SA_RESTART + .sa_handler = SIG_DFL, }; __libc_sigaction(SIGTIMER, &sa, 0); } |