LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   usage of kill -0 pid (https://www.linuxquestions.org/questions/linux-newbie-8/usage-of-kill-0-pid-888708/)

taher84 06-28-2011 02:58 AM

usage of kill -0 pid
 
I was looking into a shell script which had a line "kill -0 [pid]" , I would like to know what the -0 flag does as i found it is not killing the particular [pid] process.

acid_kewpie 06-28-2011 03:29 AM

The null signal can be used to check the validity of the pid.

ssrameez 06-28-2011 03:34 AM

Please have a look at http://linux.die.net/man/2/kill
I am also not much familiar with sig 0.

--Rameez


All times are GMT -5. The time now is 07:41 AM.