Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!uunet!zephyr.ens.tek.com!tektronix!nosun!tessi!onion!jeff From: jeff@onion.pdx.com (Jeff Beadles) Newsgroups: comp.unix.questions Subject: Re: How to tell if a process exists Message-ID: <1990Aug15.231537.2889@onion.pdx.com> Date: 15 Aug 90 23:15:37 GMT References: <3817@auspex.auspex.com> <1823@necisa.ho.necisa.oz> <7733@amelia.nas.nasa.gov> Organization: Little to none Lines: 19 samlb@pioneer.arc.nasa.gov.UUCP (Sam Bassett RCS) writes: >boyd@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@onion.pdx.com