tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wait(2) and SIGCHLD



> 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		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index