From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] waitpid() From: lucio@proxima.alt.za In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Fri, 16 Apr 2004 11:07:43 +0200 Topicbox-Message-UUID: 5d1d55f0-eacd-11e9-9e20-41e7f4b1d025 > My question is, what does posix say regarding the pids > you don't want. I mean, does it say something like > > "when waitpid finds an unwanted pid it guarantees that such > information is not dropped" or the opposite, or just nothing about. The NetBSD man page is a bit ambiguous, but I think waitpid() and wait4() specifically wait for the given PID and no other. Remember that the child need not have terminated yet, so you may not want to return at all and carry on waiting even though other children have terminated (don't ask!). ++L