home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / programm / 4470 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1003 b 

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