We now print out a nasty message and set and error if we get ECHILD,
as we no longer set SIGIGN on SIGCHLD in the standard process model.
This was why samba_kcc was able to fail totally without us noticing.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Mar 17 07:05:43 CET 2015 on sn-devel-104
SIGCHLD in the standard
process model.
*/
- tevent_req_done(req);
+ DEBUG(0, ("Error in waitpid() unexpectedly got ECHILD "
+ "for %s child %d - %s, "
+ "someone has set SIGCHLD to SIG_IGN!\n",
+ state->arg0, state->pid, strerror(errno)));
+ tevent_req_error(req, errno);
return;
}
DEBUG(0,("Error in waitpid() for child %s - %s \n",