:: Re: [DNG] Bug in procps "kill"?
Top Page
Delete this message
Reply to this message
Author: Nick
Date:  
To: dng
Subject: Re: [DNG] Bug in procps "kill"?
On 21-11-2024 13:02, Steffen Dettmer via Dng wrote:
>
>
> On Thu, Nov 21, 2024 at 12:57 PM Steffen Dettmer
> <steffen.dettmer@???> wrote:
>
>
>       sdettmer@RefVm6:~/work/p1/src (master *+$|u=) $ strace -e kill
>     /bin/kill -7659 -7660
>       kill(-7, SIGTERM)                       = -1 ESRCH (No such process)
>       +++ exited with 0 +++
>       sdettmer@RefVm6:~/work/p1/src (master *+$|u=) $

>
>
> ps: As a workaround, I can use "kill -- -9876" .
>
> _______________________________________________
> Dng mailing list
> Dng@???
> Manage your subscription:https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> Archive:https://lists.dyne.org/lurker/list/dng.en.html


I do not know what you want to achieve but as you can see kill act only
on SIGTERM and ignores -7659. You use kill with a PID and if this does
not act as wanted you do a  kill -15 PID (aka SIGTERM) or a  kill -9 PID
(aka SIGKILL).

I guess your workaround signals the -9 and ignores 876.