From owner-freebsd-stable@FreeBSD.ORG Tue Feb 24 10:22:37 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B3CE16A4CE for ; Tue, 24 Feb 2004 10:22:37 -0800 (PST) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8F6F43D1D for ; Tue, 24 Feb 2004 10:22:36 -0800 (PST) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.10/8.12.10) with ESMTP id i1OIMZcj075665; Tue, 24 Feb 2004 21:22:35 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Tue, 24 Feb 2004 21:22:35 +0300 (MSK) From: Dmitry Morozovsky To: Michael Sig Birkmose In-Reply-To: <20040224181502.C65849@server.gisp.dk> Message-ID: <20040224211910.Y72422@woozle.rinet.ru> References: <20040224181502.C65849@server.gisp.dk> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org Subject: Re: Can't kill process X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 18:22:37 -0000 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 *** ------------------------------------------------------------------------