Path: utzoo!mnetor!uunet!husc6!hao!ames!elroy!cit-vax!cit-vlsi!wen-king From: wen-king@cit-vlsi.Caltech.Edu (Wen-King Su) Newsgroups: comp.unix.wizards Subject: Re: Wait, Select, and a SIGCHLD Race Condition Message-ID: <4857@cit-vax.Caltech.Edu> Date: 11 Dec 87 18:58:57 GMT References: <5105@sol.ARPA> Sender: news@cit-vax.Caltech.Edu Reply-To: wen-king@cit-vlsi.UUCP (Wen-King Su) Organization: California Institute of Technology Lines: 25 In article <5105@sol.ARPA> stuart@cs.rochester.edu writes: >I need advice (or sympathy) for handling a race condition in 4.3BSDstopped children of a process, then use select to wait for the first (pid = wait3(..., WNOHANG, ...))) break; .... } numfds = select(...,time_ptr); if(time_ptr == &ZERO_TIMER) { go back to wait for childs } if (numfds < 0) { if (errno == EINTR) { ... } else { ... } } /*------------------------------------------------------------------------*\ | Wen-King Su wen-king@vlsi.caltech.edu Caltech Corp of Cosmic Engineers | \*------------------------------------------------------------------------*/