LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-18-2006, 12:06 AM   #1
ender42
LQ Newbie
 
Registered: Jan 2006
Posts: 28

Rep: Reputation: 15
kill -9 the unkillable process... isn't working


user@machine:~$ ps -U user | grep defunct
19547 ? 00:00:00 gnome-pty-helpe <defunct>
26875 ? 00:00:00 netstat <defunct>
user@machine:~$ kill -9 19547;kill -9 26875
user@machine:~$ ps -U user | grep defunct
19547 ? 00:00:00 gnome-pty-helpe <defunct>
26875 ? 00:00:00 netstat <defunct>
ender@machine:~$ sudo su
Password:
root@machine:/home/user # cd
root@machine:~ # ps -U user | grep defunct
19547 ? 00:00:00 gnome-pty-helpe <defunct>
26875 ? 00:00:00 netstat <defunct>
root@machine:~ # kill -9 19547;kill -9 26875
root@machine:~ # ps -U user | grep defunct
19547 ? 00:00:00 gnome-pty-helpe <defunct>
26875 ? 00:00:00 netstat <defunct>

So, how in the hell do I kill these processes?

My screensaver locked my computer up hard, couldn't get it to jump to alt-F1 or anything else, but machine was still up. Managed to ssh in via another machine (ubuntu as well, but no graphics as ubuntu doesn't like to recognize this monitor under default settings), there was one zombie process according to top, killed out the xscreensaver and a few other things, no more zombie in top. But screensaver image is still locked unto the machine.

Then tried killing Mozilla, no luck.

Tried killing nautilus and a buncha gnome things, and clock and whatever else wouldn't take down my stuff. No luck.

A little later one of those things musta eventually come down and brought down the screensaver as well. ps -U showed most of the processes back up, under new PIDs, but no idea which one was the one to take it down.

I'm now up to two defunct processes which I can't seem to get rid of...
 
Old 02-18-2006, 01:33 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Of course, a hard reboot will do it. As will an axe.
You could soft reboot or restart gnome or restart X?

killall xscreensaver ... did you try that?

$ ps -U simon | grep defunct
22853 ? 00:00:00 netstat <defunct>
15699 ? 00:00:00 gnome-pty-helpe <defunct>

I got this by:

$ killall gnome-pty-helpe
gnome-pty-helpe: no process killed

but a subsequent check turned up both the above defunct.
repeated attempts to kill the process gives no output and the entries remain.

Just so you know this behavior is not just you
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM
Cannot kill process Zeno McDohl Linux - General 13 04-14-2005 02:31 PM
how to kill a process the_rhino Linux - Newbie 5 10-24-2004 10:05 PM
Unkillable process chup Linux - General 7 04-15-2004 03:05 PM
Cannot kill process - please help! thomas.nichols Linux - General 16 09-05-2001 06:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration