PDA

View Full Version : [ubuntu] why can't I kill a process?



mdsmedia
January 11th, 2009, 04:26 AM
I've just finished watching a live stream on firefox.

I shut down the page and totem is still using all my CPU.

I've tried killing totem in top and ps x. It won't die.

What am I missing?

Cypher
January 11th, 2009, 04:33 AM
Does the process have []'s around the name by any chance? If so, the process has been zombied (abandoned by the parent) and the only way to kill that process will be to restart your machine..

anewguy
January 11th, 2009, 04:37 AM
Interesting.....I thought you could always kill any process via sudo kill -kill nnnnn

Guess I learned something here as well - thanks!

dave :)

mdsmedia
January 11th, 2009, 04:37 AM
This is the process I want to kill...no [] around it

24852 ? Dl 118:20 totem mmsh://tinopolis-pokerstarlive-eng-256k.wm.llnw

handydan918
January 11th, 2009, 04:54 AM
Does the process have []'s around the name by any chance? If so, the process has been zombied (abandoned by the parent) and the only way to kill that process will be to restart your machine..

Uh, yeah, except for killing or restarting the parent process...
About the only thing that mandates a reboot with Linux is a kernel install.
Certainly not a zombie.

damis648
January 11th, 2009, 04:55 AM
Try

sudo killall -9 processname

mkvnmtr
January 11th, 2009, 05:26 AM
damis what is the -9 for? I don't find it on the man page.

damis648
January 11th, 2009, 05:32 AM
damis what is the -9 for? I don't find it on the man page.

9 is the signal for a force kill. That should kill anything.

SunnyRabbiera
January 11th, 2009, 05:36 AM
You can also use the force quit applet for your gnome panel, just right click and select "add to panel"
and scroll down to "force quit"
drag and drop it to the panel
done :D

handydan918
January 11th, 2009, 06:17 AM
Seems to be a lot of "noise" around killing zombies....
What, nobody ever watched "night of the living dead"?
You can't kill zombies...they're already dead!

See here (http://www.cyberciti.biz/tips/killing-zombie-process.html) and here (http://www.linuxsa.org.au/tips/zombies.html) for pretty good explanations of the problems and workarounds.

SunnyRabbiera
January 11th, 2009, 06:20 AM
Seems to be a lot of "noise" around killing zombies....
What, nobody ever watched "night of the living dead"?
You can't kill zombies...they're already dead!


Zombies: BRAAAAAAAAAAAAAAAINS! BRAAAAAAAAAAAAAAAAAAINS!

hotweiss
January 11th, 2009, 09:36 AM
I always use htop to kill processes:


sudo apt-get install htop

It has a many options to kill a process. I try sigterm first, and if that doesn't work sigkill works for sure.

ithanium
January 11th, 2009, 11:16 AM
you can type xkill in terminal and press on the window which is not responding. Worked perfect so far

handydan918
January 11th, 2009, 07:53 PM
Zombies: BRAAAAAAAAAAAAAAAINS! BRAAAAAAAAAAAAAAAAAAINS!

Nice.
The eyeballs are a nice garnish, too.

stevoo
January 11th, 2009, 08:00 PM
If you try normally and the process doesnt die.
Then force it as said above and use -9
sudo -9 kill .....

Zombies do die, like in all the movies(mostly). I remember i had the same problem with a process that wouldnt shut down. I eventually killed it. Let me see if i can find out again :)

Ill keep you posted. But this seldom happens. What you usually need is -9

handydan918
January 12th, 2009, 04:48 AM
If you try normally and the process doesnt die.
Then force it as said above and use -9
sudo -9 kill .....

Zombies do die, like in all the movies(mostly). I remember i had the same problem with a process that wouldnt shut down. I eventually killed it. Let me see if i can find out again :)

Ill keep you posted. But this seldom happens. What you usually need is -9

Agreed. kill -9 usually works. When it doesn't, it's time for a recursive abortion...kill the parent!

afrodeity
April 2nd, 2010, 09:06 PM
kill a process by PID when it doesn't want to die?