LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-08-2010, 05:12 AM   #1
mohit_parihar
LQ Newbie
 
Registered: Nov 2009
Posts: 28

Rep: Reputation: 15
kill command


can any one tell me the internal working of kill command. that is how it kills a process internally or from where it picks file to continue its process.
 
Old 01-08-2010, 05:42 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,834

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
I'm not 100% certain what your question is. kill is actually a simple inter-process communication tool that sends standard unix signals to other processes (more accurately, it's a wrapper for the kill(2) system call). By default this is the TERM signal, telling the program to shut down.

Last edited by David the H.; 01-08-2010 at 05:50 AM.
 
Old 01-08-2010, 05:48 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
A good starting point is the documentation in the info pages:
Code:
$ info kill
but to understand how kill or any other program does its job exactly, the only way is to go through the source code. kill is part of coreutils, whose source code is available on the GNU website. Regarding from where kill gathers information about processes, take in mind that the kernel stores information about running processes under /proc and most likely this is the place.
 
Old 01-13-2010, 04:35 AM   #4
mohit_parihar
LQ Newbie
 
Registered: Nov 2009
Posts: 28

Original Poster
Rep: Reputation: 15
kill command

when we type kill pid on terminal it sends term singnal to a process but how it is actually working ,means how sending sinnal to a process
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kill command pulkitbajar Linux - Newbie 7 05-12-2009 08:19 PM
why we cannot kill process id 1 with command "kill -9 1" satyaredhat Linux - Newbie 7 03-11-2009 01:48 PM
kill command micro_xii Linux - Newbie 4 11-24-2006 09:48 AM
Kill command could not kill Kanaflloric Linux - General 11 08-22-2005 08:18 AM
The kill command tearinox Linux - Newbie 2 08-15-2003 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:49 AM.

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