Some processes stay active after killing its PID
Gary Palmer
gpalmer at freebsd.org
Tue Nov 27 16:08:35 PST 2007
On Tue, Nov 27, 2007 at 08:59:06PM +0100, Roland Smith wrote:
> On Tue, Nov 27, 2007 at 01:24:56PM -0600, Stephen Montgomery-Smith wrote:
> >
> >
> > On Tue, 27 Nov 2007, Honza Holakovsky wrote:
> >
> >> Well, didn't know that, "/bin/kill -9 wdfs_PID" works, great
> >>
> >> Thanks a lot, after your advice I read an article about csh built-in
> >> commands, never heard of it from any fbsd handbook...
> >
> > I am completely baffled why this worked. Why would /bin/kill -9 work when
> > the built in csh kill -9 wouldn't?
>
> According to the manual page for the built-in kill command, it
> recognizes 'kill -s 9', but not 'kill -9'.
The man page is wrong
% xcalc &
[1] 4730
% kill -BUS 4730
%
[1] Bus error xcalc
% xcalc &
[1] 4731
% kill -10 4731
%
[1] Bus error xcalc
% echo $SHELL
/bin/tcsh
%
LSOF shows I'm using the system tcsh, and AFAIK it behaves
the same for being invoked as both /bin/csh and /bin/tcsh
Gary
More information about the freebsd-stable
mailing list