Hi, I am currently running FreeBSD 4.9, and I have a user who somehow managed to get some dead bash processes. I have repeatedly attempted to kill -9 this process without any luck. The way I understood it was that kill -9 was an "offer that the process can't refuce" :) I.e. that the process would be terminated no matter wat by the OS? I tried man kill, and noticed that some shells might have a builtin kill command. Therefore I even tried running /bin/kill explicitly with no further luck. Does anyone have an idea of what I have to do, in order to kill the proces? Cheers, -- Michael Birkmose
On Tue, 24 Feb 2004 18:19:38 +0100 (CET) Michael Sig Birkmose <michael@gisp.dk> wrote:> Hi, > > I am currently running FreeBSD 4.9, and I have a user who somehow > managed to get some dead bash processes. I have repeatedly attempted > to kill -9 this process without any luck. The way I understood it > was that kill -9 was an"offer that the process can't refuce" :) I.e. > that the process would be terminated no matter wat by the OS? > > I tried man kill, and noticed that some shells might have a builtin > kill command. Therefore I even tried running /bin/kill explicitly > with no further luck. > > Does anyone have an idea of what I have to do, in order to kill the > proces?It is zombied most likely... man ps and then search for zombie...
Programs like Xine and XMMS refuse to shut down properly on my installation, and they are bringing a heavy load to my CPU. If I use killall xine or kill <pid> it just keeps running, but if I use kill -KILL <pid> then it always terminates instantly. It always worked for me. I'm using 5.2.1 RC-2 though, and not 4.9. Cheers, Jorn On Tuesday 24 February 2004 18:19, Michael Sig Birkmose wrote:> Hi, > > I am currently running FreeBSD 4.9, and I have a user who somehow managed > to get some dead bash processes. I have repeatedly attempted to kill -9 > this process without any luck. The way I understood it was that kill -9 was > an "offer that the process can't refuce" :) I.e. that the process would be > terminated no matter wat by the OS? > > I tried man kill, and noticed that some shells might have a builtin kill > command. Therefore I even tried running /bin/kill explicitly with no > further luck. > > Does anyone have an idea of what I have to do, in order to kill the > proces? > > Cheers,
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 *** ------------------------------------------------------------------------
>Date: Tue, 24 Feb 2004 18:19:38 +0100 (CET) >From: Michael Sig Birkmose <michael@gisp.dk> >To: freebsd-stable@freebsd.org >Subject: Can't kill process >Sender: owner-freebsd-stable@freebsd.org>I am currently running FreeBSD 4.9, and I have a user who somehow managed >to get some dead bash processes. I have repeatedly attempted to kill -9 >this process without any luck. The way I understood it was that kill -9 was an >"offer that the process can't refuce" :) I.e. that the process would be >terminated no matter wat by the OS?>...>Does anyone have an idea of what I have to do, in order to kill the >proces?If a process doesn't get any CPU time at all, it's difficult to do anything at all with it, including making it exit. This can be an issue, e.g., for a process that had opened a file on an NFS-mounted file system, then the NFS server goes away. A subsequent read() by the process in question will show up with a "D" under "STAT" in the output of "ps". It's rather disruptive, but a reboot may be required to actually get rid of the process entirely. Peace, david -- David H. Wolfskill david@catwhisker.org I do not "unsubscribe" from email "services" to which I have not explicitly subscribed. Rather, I block spammers' access to SMTP servers I control, and encourage others who are in a position to do so to do likewise.