Re: [patch V5 04/26] signal: Allow POSIX timer signals to be dropped

From: Frederic Weisbecker
Date: Mon Oct 21 2024 - 08:22:31 EST


Le Tue, Oct 01, 2024 at 10:42:04AM +0200, Thomas Gleixner a écrit :
> From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
>
> In case that a timer was reprogrammed or deleted an already pending signal
> is obsolete. Right now such signals are kept around and eventually
> delivered. While POSIX is blury about this:
>
> - "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."
>
> it is reasonable in both cases to expect that pending signals are discarded
> as they have no meaning anymore.
>
> Prepare the signal code to allow dropping posix timer signals.
>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>

Reviewed-by: Frederic Weisbecker <frederic@xxxxxxxxxx>