bin/165811: kill(1) doesn't terminate a process group with the command "kill -- -117" (from man kill)

Jaakko Heinonen jh at FreeBSD.org
Thu Mar 8 15:15:21 UTC 2012


On 2012-03-08, Salimane Adjao Moustapha wrote:
> with /bin/kill I still have this problem.
> 
> 
> Fb-bj# ps axjf | grep resque
> myuser 17995     1 17993 17993    0 I     ??    0:00.11 /usr/local/bin/php
> -f scripts/resque/resque.php low
> myuser 17996 17995 17993 17993    0 S     ??    0:42.24 /usr/local/bin/php
> -f scripts/resque/resque.php low
> myuser 17997 17995 17993 17993    0 S     ??    0:41.67 /usr/local/bin/php
> -f scripts/resque/resque.php low
> myuser 18026     1 18024 18024    0 I     ??    0:00.16 /usr/local/bin/php
> -f scripts/resque/resque.php high
> myuser 18031 18026 18024 18024    0 S     ??    0:02.50 /usr/local/bin/php
> -f scripts/resque/resque.php high
> myuser 18032 18026 18024 18024    0 S     ??    0:02.81 /usr/local/bin/php
> -f scripts/resque/resque.php high
> root    62234 62209 62233 62204    2 S+     0    0:00.00 grep resque
> Fb-bj# /bin/kill -- -17995
> kill: -17995: No such process
> 
> 
> i still can't kill the process 17995 and its children 17996, 17997

PGID is the fourth column in your listing. Thus you should use
"/bin/kill -- -17993".

-- 
Jaakko


More information about the freebsd-bugs mailing list