Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!cornell!rochester!PT.CS.CMU.EDU!F.GP.CS.CMU.EDU!rpd From: rpd@F.GP.CS.CMU.EDU (Richard Draves) Newsgroups: comp.unix.wizards Subject: Re: Wait, Select, and a SIGCHLD Race Condition Message-ID: <493@PT.CS.CMU.EDU> Date: 11 Dec 87 18:00:57 GMT References: <5105@sol.ARPA> Sender: netnews@PT.CS.CMU.EDU Organization: Carnegie-Mellon University, CS/RI Lines: 7 One solution (this idea is from GNU Emacs) is to put a large timeout on the select. Make a SIGCHLD handler that clears the timeout. Then if the handler is called before entering select, the select won't block. Rich