> What I observe is that a process that explicitly ignores SIGCHLD
> (SIG_IGN), then forks a child which exits, when wait()ing for the
> child, gets ECHILD (i.e., wait returns -1 and errno is ECHILD).

And the ECHILD return is delayed until all children have terminated
(ie, until there are no outstanding children, until the ECHILD return
is accurate).  That's important for some use cases.

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML                mo...@rodents-montreal.org
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Reply via email to