Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Feb 2004 21:22:35 +0300 (MSK)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        Michael Sig Birkmose <michael@gisp.dk>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Can't kill process
Message-ID:  <20040224211910.Y72422@woozle.rinet.ru>
In-Reply-To: <20040224181502.C65849@server.gisp.dk>
References:  <20040224181502.C65849@server.gisp.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 24 Feb 2004, Michael Sig Birkmose wrote:

MSB> I am currently running FreeBSD 4.9, and I have a user who somehow managed
MSB> to get some dead bash processes. I have repeatedly attempted to kill -9
MSB> this process without any luck. The way I understood it was that kill -9 was an
MSB> "offer that the process can't refuce" :) I.e. that the process would be
MSB> terminated no matter wat by the OS?
MSB>
MSB> I tried man kill, and noticed that some shells might have a builtin kill
MSB> command. Therefore I even tried running /bin/kill explicitly with no
MSB> further luck.
MSB>
MSB> Does anyone have an idea of what I have to do, in order to kill the
MSB> proces?

If a process is a zombie (haven't got proc table entry fully defined) or has
called blocking system call which is blocked (such as disk read request to bad
disk media, or NFS read request to NFS server which is not reachable), then
such process is unkillable.

>From ``man ps'':

     state   The state is given by a sequence of characters, for example,
             ``RWNA''.  The first character indicates the run state of the
             process:

	D       Marks a process in disk (or other short term, uninter-
		ruptible) wait.
[snip]
        Z       Marks a dead process (a ``zombie'').


Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



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