Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!samsung!munnari.oz.au!metro!cluster!necisa!boyd From: boyd@necisa.ho.necisa.oz (Boyd Roberts) Newsgroups: comp.unix.questions Subject: Re: How to tell if a process exists Message-ID: <1823@necisa.ho.necisa.oz> Date: 9 Aug 90 01:09:17 GMT References: <26B867F8.38BB@wilbur.coyote.trw.com> <3817@auspex.auspex.com> Organization: NEC Information Systems Australia Pty. Ltd. Lines: 12 In article <3817@auspex.auspex.com> guy@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@necisa.ho.necisa.oz.au ``When the going gets wierd, the weird turn pro...''