How to tell if a process exists

Jeff Beadles jeff at onion.pdx.com
Thu Aug 16 09:15:37 AEST 1990


samlb at pioneer.arc.nasa.gov.UUCP (Sam Bassett RCS) writes:
>boyd at necisa.ho.necisa.oz (Boyd Roberts) writes:
>>Wrong.  RTFM --  kill(pid, 0)

>	Hmmm -- must be running Reverse Polish Unix down under, 'cause my
>manual sez: " kill [-sig] processid... ", and I've been doing it that way
>for a looooooooong time.

>	What kind of UNIX _are_ you running??

Well, most any modern variant.  The kill(pid,0) version is for the 'C'
programming language.  See the kill(2) man page.

kill -SIG pid is a simple C program that's called by the shell.


	-Jeff
-- 
Jeff Beadles    jeff at onion.pdx.com



More information about the Comp.unix.questions mailing list