Path: utzoo!attcan!uunet!clyde.concordia.ca!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucsd!rutgers!njin!princeton!phoenix!pfalstad From: pfalstad@phoenix.Princeton.EDU (Paul John Falstad) Newsgroups: comp.unix.questions Subject: Re: Can process do an asynchronous wait? Message-ID: <16894@phoenix.Princeton.EDU> Date: 31 May 90 05:56:22 GMT References: <30343@cup.portal.com> Reply-To: pfalstad@phoenix.Princeton.EDU (Paul John Falstad) Organization: Princeton University, NJ Lines: 14 In article <30343@cup.portal.com> tms@cup.portal.com (Alexis TMS Tatarsky) writes: >If a process forks and execs several child processes, is there any >way for the parent to detect when the child processes have exited >or died without having to wait(2) on them. I wrote a program where >the parent caught SIGCLD but I don't know which child it is which >died. If your system has it, use wait3(2) with the WNOHANG flag. -- Paul Falstad PLINK:Hypnos GEnie:P.FALSTAD net:pfalstad@phoenix.princeton.edu Disclaimer: My opinions, which belong to me and which I own, are mine. -Anne Elk (not AN elk!) The sun never set on the British empire because the British empire was in the East and the sun sets in the West.