How to tell if a process exists

Boyd Roberts boyd at necisa.ho.necisa.oz
Thu Aug 9 11:09:17 AEST 1990


In article <3817 at auspex.auspex.com> guy at auspex.auspex.com (Guy Harris) writes:
>>In a C program, how do you tell if a certain process exists? A
>>kill(0,pid) works only if you own the process (or you're root).
>
>Wrong.  "kill(0, pid)" ...

Wrong.  RTFM --  kill(pid, 0)


Boyd Roberts			boyd at necisa.ho.necisa.oz.au

``When the going gets wierd, the weird turn pro...''



More information about the Comp.unix.questions mailing list