On 11/09/10 03:27, Philip Guenther wrote:
On Mon, Nov 8, 2010 at 4:10 PM, Christiano F. Haesbaert <[email protected]> wrote:I must be doing something really silly but it seems waitpid ends up returning -1 if WNOHANG is specified and there are no children to reap.Umm, that's what the standard specifies.
waitpid(2), RETURN VALUES"Otherwise, if WNOHANG is specified and there are no stopped or exited children, 0 is returned."
