diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2024-11-05 09:14:52 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-11-07 02:14:45 +0100 |
commit | caf77435dd8a52cb39c602bdf67d35d6f782f553 (patch) | |
tree | aec94b027203169c5de7772c142977a0c10e03e1 /kernel/time/posix-cpu-timers.c | |
parent | 0e20cd33acc7a173b23900550331ee82a23e9f00 (diff) | |
download | linux-caf77435dd8a52cb39c602bdf67d35d6f782f553.tar.gz linux-caf77435dd8a52cb39c602bdf67d35d6f782f553.tar.bz2 linux-caf77435dd8a52cb39c602bdf67d35d6f782f553.zip |
signal: Handle ignored signals in do_sigaction(action != SIG_IGN)
When a real handler (including SIG_DFL) is installed for a signal, which
had previously SIG_IGN set, then the list of ignored posix timers has to be
checked for timers which are affected by this change.
Add a list walk function which checks for the matching signal number and if
found requeues the timers signal, so the timer is rearmed on signal
delivery.
Rearming the timer right away is not possible because that requires to drop
sighand lock.
No functional change as the counter part which queues the timers on the
ignored list is still missing.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/all/20241105064214.054091076@linutronix.de
Diffstat (limited to 'kernel/time/posix-cpu-timers.c')
0 files changed, 0 insertions, 0 deletions