Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 11-02-2004, 03:18 PM   #1
Registered: Jun 2002
Posts: 302

Rep: Reputation: 31
Why Does the Program Die When I xkill It But Not When I kill -9 It?

I'm sure you've all encountered this. You have some GUI-based application that you want to kill and when you try to kill it using "kill -9 pid", the application does not shut down or die. In fact, sometimes it doesn't even die if you try it a few times. At the same time, if you use xkill, the application dies immediately. Why does this happen? What low-level system call does xkill make and can it be invoked from the terminal without selecting the process using the cross-hairs? Thanks for your time.
Old 11-03-2004, 07:04 AM   #2
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
Many times xkill doesn kill the application at all, just kill the GUI. When you xkill something make 'ps -d' and somethines you can see the procces runing.
Old 11-03-2004, 07:09 AM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
xkill I believe will kill all processes associated with that running process... when your doing an kill -9, your probably not killing all the processes. xkill is dangerous as so is kill -9... You should really use pstree to find the parent process and send a HUP to it to kill it nicely, then if all else fails, use a kill -9.
Old 01-03-2005, 03:30 AM   #4
Registered: Jun 2002
Posts: 302

Original Poster
Rep: Reputation: 31
Thanks trickykid. I've read that some processes can't be killed because their parent's have exited without waiting (zombies) while others can't because the kernel is doing something on their behalf. Is there any wait to overcome these? Thanks for your time.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
the process that would not die -- can't kill fdisk Furlinastis Slackware 12 10-30-2005 02:28 PM
why my script die itself when I try to kill a process?? jaimese Linux - Newbie 4 10-27-2005 05:50 AM
Die Miva, Die! Apache Woes, Cannot kill Miva linchat Linux - Software 3 09-16-2005 08:03 PM
Die, lotus notes, die (sorry for ranting) slackist General 10 01-10-2005 10:42 AM
Die Caps lock Die! tfdml37 Linux - General 1 06-26-2004 02:00 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:13 PM.

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