diff options
author | Thomas Gleixner <[email protected]> | 2024-10-01 10:42:06 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2024-10-29 11:43:19 +0100 |
commit | 2860d4d315dc01f001dfd328adaf2ab440c47dd3 (patch) | |
tree | ad181993fc4f2838bd73b92b6b0c262bde49c7f0 /kernel/time/posix-cpu-timers.c | |
parent | c775ea28d4e23f5e58b6953645ef90c1b27a8e83 (diff) |
posix-timers: Drop signal if timer has been deleted or reprogrammed
No point in delivering a signal from the past. POSIX does not specify the
behaviour here:
- "The effect of disarming or resetting a timer with pending expiration
notifications is unspecified."
- "The disposition of pending signals for the deleted timer is unspecified."
In both cases it is reasonable to expect that pending signals are
discarded. Especially in the reprogramming case it does not make sense to
account for previous overruns or to deliver a signal for a timer which has
been disarmed.
Drop the signal as that is conistent and understandable behaviour.
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Frederic Weisbecker <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'kernel/time/posix-cpu-timers.c')
0 files changed, 0 insertions, 0 deletions