LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 11-02-2004, 03:18 PM   #1
LinuxGeek
Member
 
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
Santas
Member
 
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
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 194Reputation: 194
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
LinuxGeek
Member
 
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.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 05:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration