The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Trying to kill a program via help command. TiznaraN Shell Programming and Scripting 5 04-22-2008 12:57 PM
the kill command kelogs1347 High Level Programming 2 11-23-2006 04:23 AM
Is there anu command or way to kill zombis? umen UNIX for Dummies Questions & Answers 4 05-21-2006 04:48 AM
Kill a debug command AJA UNIX for Dummies Questions & Answers 3 03-01-2004 12:59 PM
kill command Rush UNIX for Dummies Questions & Answers 1 03-27-2003 04:54 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-07-2006
sonali sonali is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 7
Kill Command

Hi All,
What is difference between kill & kill -9 command?

Thanks & regards,
Sonali
  #2 (permalink)  
Old 11-07-2006
hynakelly hynakelly is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 4
type man kill
  #3 (permalink)  
Old 12-31-2006
phoenix21 phoenix21 is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 1
Here you go

Kill is used for graceful killing where as kill -9 is unconditional. That means,
when you use -9 the program will will shut by bruteforce.
  #4 (permalink)  
Old 01-02-2007
makki makki is offline
Registered User
  
 

Join Date: Jan 2007
Location: Vac, Hungary
Posts: 3
'kill' sends a SIGTERM signal to the process so it can exit cleanly(close file ptr, flush buffers, etc, and exit), 'kill -9' asks the OS to close the process. That's the only signal that is not delivered to the process,. so it can not handle.
  #5 (permalink)  
Old 01-03-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,944
Quote:
Originally Posted by makki
'kill' sends a SIGTERM signal to the process so it can exit cleanly(close file ptr, flush buffers, etc, and exit), 'kill -9' asks the OS to close the process. That's the only signal that is not delivered to the process,. so it can not handle.
if it is not delivered the process, how is the kernel able to terminate the process forcefully?

It is delivered.

signal handlers for -9 cannot be registered.

Along with -9 there is one more
SIGSTOP which stops the process and cannot be handled.
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 06:31 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