home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:11007 comp.unix.wizards:3898 comp.unix.internals:1803
- Newsgroups: comp.unix.questions,comp.unix.wizards,comp.unix.internals
- Path: sparky!uunet!cs.utexas.edu!oakhill!engage.sps.mot.com!fmbutt
- From: fmbutt@engage.sps.mot.com (Farooq M. Butt)
- Subject: Best way to be alerted on the demise of a child process?
- Message-ID: <1992Sep12.174906.24374@oakhill.sps.mot.com>
- Sender: news@oakhill.sps.mot.com
- Nntp-Posting-Host: 223.3.249.15
- Organization: Motorola RISC Software, Austin, TX
- Date: Sat, 12 Sep 1992 17:49:06 GMT
- Lines: 19
-
- Unix.illuminati:
-
- what is the best way to keep track of numerous child processes that one
- may have forked off ? Specifically I'd like to be notified asynchronously
- when any of them dies. I know that that I can check the status of
- a specific child via waitpid() (BTW: is that the _best_ way of checking status?)
- but that is a synchronous way of doing so, what I am looking for is a
- way to spawn off a child and have some signal handler deal with its
- death --if and when that occurs. I know that this must have been
- done a zillion ways but I am looking for "the best" way if one exists.
- Blast me email and I'll summarize...
-
- fmb
-
- --
- Standard High-Tech Disclaimer: NOTHING in the above article has the slightest
- relationship to reality. If any reality correspondences are found, please
- notify me IMMEDIATELY. Any threats, abuse or stupidity of any kind is purely
- UNintentional. These are MY Opinions NOT my employer's.
-