home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.programmer:4470 comp.unix.wizards:3714
- Newsgroups: comp.unix.programmer,comp.unix.wizards
- Path: sparky!uunet!mcsun!sun4nl!dutrun!donau!donau.et.tudelft.nl!bas
- From: bas@phys.uva.nl (Bas de Bakker)
- Subject: Re: detecting process death from unrelated process
- In-Reply-To: gerald@atlastele.com's message of Tue, 25 Aug 1992 22: 50:21 GMT
- Message-ID: <BAS.92Aug27082502@carlo.phys.uva.nl>
- Sender: news@donau.et.tudelft.nl (UseNet News System)
- Nntp-Posting-Host: carlo.phys.uva.nl
- Organization: Institute for Theoretical Physics, Amsterdam, the Netherlands
- References: <1992Aug25.225021.22386@atlastele.com>
- Date: Thu, 27 Aug 1992 13:25:02 GMT
- Lines: 9
-
- >>>>> On Tue, 25 Aug 1992 22:50:21 GMT, gerald@atlastele.com (Gerald Aden) said:
-
- ga> Is there a way for process A to detect that process B has exited where
- ga> process A has the pid of process B but is not the parent of process B?
-
- You could try using kill() with a zero signal number, and check its
- return value.
-
- Bas de Bakker.
-