Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2012 17:15:11 +0200
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        Salimane Adjao Moustapha <me@salimane.com>
Cc:        freebsd-bugs@freebsd.org
Subject:   Re: bin/165811: kill(1) doesn't terminate a process group with the command "kill -- -117" (from man kill)
Message-ID:  <20120308151511.GA60889@jh>
In-Reply-To: <CABoxVtxEnP48oN2E%2B-0%2BDzWh46JQ=Mb6Hx=Un-Ve1Myi2eZsqw@mail.gmail.com>
References:  <201203071825.q27IPnfE062452@freefall.freebsd.org> <CABoxVtxEnP48oN2E%2B-0%2BDzWh46JQ=Mb6Hx=Un-Ve1Myi2eZsqw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120308151511.GA60889>