Roland, Just to follow up with one more data point. > I did some more investigaton and testing: > > -- Tru64 5.1 behaves like Solaris 8 -- si_pid == 0 for > the WNOHANG with no children case. > > -- HP-UX 11 is different -- not even POSIX compliant. It > returns -1 with ECHILD in this scenario. > > -- According to the man pages, waitid() is also present on > Irix 6.5 and UnixWare 7, but I don't have access to > those systems to run a test (my earlier test program > would be sufficient to test on those systems). > > So, discounting the non-compliant HP-UX, on other > implementations we have 2 out of 2 for the "si_pid == 0" > behavior. (I will see if I can get access to other > systems for further testing.) So, how about > reconsidering the approach for Linux? Someone has supplied with me with a data point for Irix 6.5 (and 6.2). Irix behaves like Solaris 8. So that's 3 out of 3 for the "si_pid == 0" behavior (plus a buggy HP-UX 11). I will try to get a Unixware data point, but that will probably take several days. (I wonder if anyone can supply an AIX data point?) Cheers, Michael Cheers, Michael -- NEU: Bis zu 10 GB Speicher für e-mails & Dateien! 1 GB bereits bei GMX FreeMail http://www.gmx.net/de/go/mail