mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
remove unused SIGTIMER handler in timer_create
this was leftover from when the actual SIGEV_THREAD timer logic was in
the signal handler. commit 5b74eed3b3
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.
This commit is contained in:
parent
47baa0301f
commit
6ae2568bc2
1 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue