Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-sdd!ncr-sd!ncrcae!wescott From: wescott@ncrcae.Columbia.NCR.COM (Mike Wescott) Newsgroups: comp.unix.questions Subject: Re: How to tell if a process is active? Keywords: process Message-ID: <4608@ncrcae.Columbia.NCR.COM> Date: 15 Jun 89 13:14:52 GMT References: <2727@infocenter.UUCP> Reply-To: wescott@ncrcae.Columbia.NCR.COM (Mike Wescott) Organization: NCR Corp., Engineering & Manufacturing - Columbia, SC Lines: 18 In article <2727@infocenter.UUCP> mhoffman@infocenter.UUCP (Mike Hoffman) writes: > > I have an application in which I need to check to see if a process > is currently active. Try: isactive(pid) if(kill(pid,0)==0 || errno == EPERM) return(process is active) else return(process is not active) see kill(2). -- -Mike Wescott mike.wescott@ncrcae.Columbia.NCR.COM