Re: about killing a process



Aragorn wrote:
On Monday 10 July 2006 07:57, ctx2002 stood up and spoke the following
words to the masses in /comp.os.linux.misc...:/

hi all:

i have a strange problem, one process in my machine can not be killed.

i have used kill -9 pid,
kill -KILL pid
kill -SIGKILL pid

just not work, any one know why?

Well, first of all, do you have permission to kill this process - i.e.
are you trying this as root or as the owner of the process?

Secondly, have you checked - e.g. via /top/ - whether this process might
be zombie'd? If it _is_ a zombie process, then you can't get rid of it
unless you reboot.

Actually, you sometimes can. If you kill the parent (assuming you can do
that, and are willing to do it), then init will inherit it and init will get
it off.

The big problem is if the program is stuck in D state...

Hope this helps... ;-)



--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 09:00:01 up 90 days, 22:33, 4 users, load average: 4.70, 4.41, 4.28
.



Relevant Pages

  • Re: KDM at boot
    ... Sereno Ternullo wrote: ... It's the same for 'kill -HUP 1' ... "init q" is specific to init. ... is the standard unix way to tell {pid} to reload its configuration file. ...
    (freebsd-questions)
  • Re: about killing a process
    ... words to the masses in /comp.os.linux.misc...:/ ... i have a strange problem, one process in my machine can not be killed. ... i have used kill -9 pid, ...
    (comp.os.linux.misc)
  • Re: about killing a process
    ... i have a strange problem, one process in my machine can not be ... i have used kill -9 pid, ... If it _is_ a zombie process, ...
    (comp.os.linux.misc)
  • about killing a process
    ... i have a strange problem, one process in my machine can not be killed. ... i have used kill -9 pid, ...
    (comp.os.linux.misc)
  • booting problem with tpconfig after removing it
    ... I encountered a strange problem today. ... After booting into single user mode I tried to manually start ... In the shell I could kill it with Ctrl-C, ... Maybe it is because the tpconfig package was removed. ...
    (Debian-User)