WAITPID appears to be just a wrapper for waitpid, for which man says:
""
RETURN VALUE
waitpid(): on success, returns the process ID of the child whose state
has changed; on error, -1 is returned; if WNOHANG was specified and no
child(ren) specified by pid has yet changed state, then 0 is returned.
""
By the time it's gone into the "infinite" loop, it's always returning *0*, not -1?
That is: I observed in the debugger that it was always returning 0 (not -1), the '?' was supposed to mean: "isn't this perfectly normal and errno should not be considered in this case"?
Michael `Wumpus' Zinn <[EMAIL PROTECTED]>