LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-03-2003, 10:47 AM   #1
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Rep: Reputation: 30
Process won't kill


Correct me if I'm wrong but won't the command: kill -9 XXXXX, kill the process no matter what? I have this process that has crashed and I can't get it to go away. I typed kill -9 23254, both in my user account and with su and it won't go away? I have had this problem before. What do I need to do to kill it and any other stubborn processes in the future that act the same way?
 
Old 03-03-2003, 10:56 AM   #2
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
in my experience

u gotta kill parent process when the process doesn't die with kill -9

u can see ppid with ps or pstree
 
Old 08-03-2007, 09:22 AM   #3
hannah2007
LQ Newbie
 
Registered: Aug 2007
Posts: 1

Rep: Reputation: 0
I have encountered similar problem. With kill -9 it doesn't work. And the parent process of the process I want to kill is 1. In this case, it is not allowed to kill 1. How to kill the hanging process? For me it is not possible to restart the system because it is shared by many people.
 
Old 08-03-2007, 11:31 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
PID 1 is Init and Init reaps zombies automagically after some time has passed. No need to do anything about that.
 
Old 08-03-2007, 11:54 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
If the process isn't a zombie so isn't reaped by init, there is a good chance it is hanging in the kernel in "uninterruptable sleep".
Depending on the driver used, you may fix that by reviving a disconnected peripheral (or a remote server if NFS is the culprit).
If the issue is a buggy device driver, I believe you have no alternative but to reboot.
 
Old 08-03-2007, 12:45 PM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Just an add-on...
Code:
ps -eO user -H
will show the process tree along with the process status (to determine if it is a zombie -Z- or an uninterruptable sleep -D-)
 
  


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
I want to kill process Jeon, Chang-Min Linux - General 6 08-09-2005 12:14 AM
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
can't kill the process ust Linux - Software 2 12-16-2004 11:53 PM
can't kill the process ust Linux - Software 1 09-15-2004 06:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:59 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