The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Diff b/n kill and kill -9 ammu UNIX for Advanced & Expert Users 2 07-18-2007 06:29 PM
not able to kill find with kill -9 Amardeep UNIX for Dummies Questions & Answers 5 01-04-2007 05:49 PM
Script doesn't work, but commands inside work cheongww UNIX for Dummies Questions & Answers 2 11-14-2006 10:52 PM
KILL PID, intern should kill another PID. rkrgarlapati Shell Programming and Scripting 4 10-17-2006 08:47 AM
When kill doesnt work, how to kill a process ? VijayHegde UNIX for Advanced & Expert Users 3 05-12-2006 05:24 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-01-2008
kermit's Avatar
kermit kermit is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 24
When kill [pid] does not work...

Hi,

On my Linux machine, using Bash, I sometimes run into a situation where doing the following does not seem to work at all.

Code:
kermit@fastbox ~ $ ps -A | grep firefox-bin
 5375 ?        00:06:57 firefox-bin <defunct>
 5624 ?        00:00:00 firefox-bin
kermit@fastbox ~ $ kill 5624
kermit@fastbox ~ $ ps -A | grep firefox-bin
 5375 ?        00:06:57 firefox-bin <defunct>
 5624 ?        00:00:00 firefox-bin
kermit@fastbox ~ $
Why is kill not killing the process?
  #2 (permalink)  
Old 09-01-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,323
What most often "defunct" means is a 'zombie' , so you have to 'kill'em all' you can either "pkill -9 firefox" - guaranteed that all processes with firefox in their names will die, though it's dangerous, or, you can 'kill -9' which is not the most elegant way, but it works. The regular kill is the default, nice way, whereas -9 flag cannot be ignored.
  #3 (permalink)  
Old 09-01-2008
kermit's Avatar
kermit kermit is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 24
Ok thanks. I ended up rebooting, but the next time I have an issue such as that with Firefox, I will give your suggestion a try.
  #4 (permalink)  
Old 09-02-2008
broli's Avatar
broli broli is offline
Registered User
  
 

Join Date: Dec 2007
Location: Argentina
Posts: 215
kill with no signal number "asks politly to the process to end"
so, if its zombied, it wont reply
be a macho and use -9 :P
  #5 (permalink)  
Old 09-02-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
You can't kill a zombie, that's what zombie means, it's already killed but it won't go away.
  #6 (permalink)  
Old 09-02-2008
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,957
only process can be killed.
zombie is not at all a process.
It just represents its existence in the past occupying a slot in the kernel process table and as such it is not a process
  #7 (permalink)  
Old 09-02-2008
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,957
Quote:
What most often "defunct" means is a 'zombie'
Hi Sysgate,

I don't understand when you use the term - "most often"

Does that mean a non-defunct process can be zombie ?
I haven't heard of this before or came across such.
Would you mind giving some explanation about this ?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 10:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0