Operating System - HP-UX
1833764 Members
2562 Online
110063 Solutions
New Discussion

Re: Process not killed by kill -9

 
SOLVED
Go to solution
Shivkumar
Super Advisor

Process not killed by kill -9

Dear Sirs,

In what scenerio "kill -9 process id" command would fail to kill the process ?
In such scenario how to kill that particular process ?

Thanks,
Shiv
5 REPLIES 5
Indira Aramandla
Honored Contributor
Solution

Re: Process not killed by kill -9

Hi,

You can do a ps -ef | grep process-id to see if the process still exists. Then you can kill the process. Make sure you kill the child and then the parent so as not leave any process hung.


IA
Never give up, Keep Trying
Rajeev  Shukla
Honored Contributor

Re: Process not killed by kill -9

Any process waiting for a resource will not die till resource has been released. kill -9 is a force kill which should kill all the process until its a zombie process which wont die until you reboot the system or release the resource
Mel Burslan
Honored Contributor

Re: Process not killed by kill -9

processes which can not be killed by kill -9 command are the ones who are running at kernel priority level more than likely waiting for a signal which may or may not come. Some refer to these processes as zombies but this is not always the case. Some processes, due to a possible sloppy programming or some unexpected and untrapped condition, raise their priority level to that of kernel processes, at which point they become unsignallable. So, which ever signal you try to send them, including almighty SIGKILL (a.k.a. -9) is ignored. The only way for these processes to die is either the condition they are waiting for to be met or reboot of the server.
________________________________
UNIX because I majored in cryptology...
Cem Tugrul
Esteemed Contributor

Re: Process not killed by kill -9

Shiv,

Seems you have zombie proc so only way to
repel it just reboot your box.

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Mahesh Kumar Malik
Honored Contributor

Re: Process not killed by kill -9

Hi Shiv

Kill the child process first before the parent one. If it is zombie process, reboot will kit it.

Regards
Mahesh