On Fri, Feb 19, 2010 at 06:08:07PM -0500, Joey Hess wrote: > Kurt Roeckx wrote: > > > si_pid will only be nonzero if waitid succeeded. > > > > Like I said it probably will, but I'm not sure there is any > > guarantee in that case. In any case I think it's a bad idea > > to not look at the return value. > > The man page explicitly recommends zeroing si_pid and checking for a > nonzero value, the way parallel does.
That's for the case of WNOHANG, where it will return 0 for both a process that exited and no process exited. Looking at the pid you can see the difference. Kurt -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org