Re: [RFC PATCH v2] posix-timers: Support delivery of signals to the current thread

Oleg Nesterov
2023-01-25T16:46:48Z

On 01/25, Oleg Nesterov wrote:
>
> > 2. The signal is still queued into process shared_pending
>
> Yes. But just in case, please note that if this signal is not realtime
> (sigev_signo < SIGRTMIN) and it is already queued, it will be dropped.
> And I do not know if this can work for you.
>
> However this is what we already have with SIGEV_SIGNAL w/o SIGEV_THREAD_ID,
> and the same is true for SIGEV_THREAD_ID if the signal is already pending in
> target_task->pending.

Damn ;) please ignore. I forgot that send_sigqueue() doesn't check
legacy_queue().

Oleg.