LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2009, 05:08 AM   #1
aramakri
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Processes in Linux


When I tried to kill a process by using kill -15 PID, it is not getting killed.But when using a kill -9 on the same process kills it.What could be the possible reason
 
Old 04-27-2009, 05:51 AM   #2
Spudley
Member
 
Registered: Mar 2003
Location: Berkshire, England.
Distribution: SuSE 10.0
Posts: 299

Rep: Reputation: 32
Basically, the difference is like this:

kill -15 asks the process to terminate.
kill -9 tells it to.

Ideally, you should try -15 first, so that the application can shut itself down properly, and only use -9 if -15 doesn't work and you really need to kill it.

But in practice, most people I know just use -9. :-/
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Limitations of System Processes and Oracle Processes in RHEL AS3.0 sathyguy Linux - Enterprise 0 03-03-2007 12:52 AM
Processes(sp?) in Linux Robert Diggs Linux - Newbie 1 12-29-2006 11:28 AM
linux processes baisie General 5 03-09-2006 01:35 PM
Linux Processes? cdegroat Linux - General 6 04-18-2005 02:06 PM
monitoring active processes and identifying the required processes. gajaykrishnan Programming 2 08-13-2004 02:58 AM


All times are GMT -5. The time now is 01:52 PM.

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