Path: utzoo!attcan!uunet!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ncar!tank!gargoyle!oddjob!matt From: matt@group-w.uchicago.edu (Matt Crawford) Newsgroups: comp.unix.wizards Subject: Re: How can a parent find out if one of its children is still alive Message-ID: <1046@gargoyle.uchicago.edu> Date: 5 Jun 90 22:41:46 GMT References: <30408@cup.portal.com> <6334@ozdaltx.UUCP> Sender: news@gargoyle.uchicago.edu Reply-To: matt@group-w.uchicago.edu (Matt Crawford) Distribution: na Organization: Very Little Lines: 12 In-reply-to: toma@ozdaltx.UUCP (Tom Armistead) ) DeadHead@cup.portal.com (Bruce M Ong) writes: ) > How can a parent find out if one of its children is still alive ) > or not without Tom Armistead, wizard-wannabe, answers: ) i.e.: if( kill( child_pid, 0 ) == -1 ) ) puts( "The child is dead" ); overlooking the possibility that the child exited many minutes ago and the pid is now being used by some unrelated process. ________________________________________________________ Matt Crawford matt@oddjob.uchicago.edu