Re: [PATCH v2 1/2] signal: add the "int si_code" arg to prepare_kill_siginfo()

From: Oleg Nesterov
Date: Fri Feb 09 2024 - 11:40:46 EST


On 02/09, Eric W. Biederman wrote:
>
> Could you can pass in the destination type instead of the si_code?
> Something like I have shown below?

..

> info->si_code = (type == PIDTYPE_PID) ? SI_TKILL : SI_USER;

Yes, I considered this option too.

OK, will send V3 tomorrow.

Oleg.