util-runcmd: ignore spurious ECHILD errors
authorAndrew Tridgell <tridge@samba.org>
Tue, 20 Apr 2010 11:45:33 +0000 (21:45 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 20 Apr 2010 13:43:33 +0000 (23:43 +1000)
commita9f5bfb3a5324f09a07657a8bb28bb4510485d31
treefbe12f1a74c9ea9cdd1bb449a1f6fa4837aa6f38
parent4f5298cbb4c044b6bde0cda04d182651f826ee53
util-runcmd: ignore spurious ECHILD errors

when we get ECHILD in samba_runcmd it is because the parent has set
SIGCHLD to SIG_IGN. In that case the child status information is
lost. We then have to fallback on the logging of child error messages
for any useful information on what happened to the child.

A longer term fix is to stop using SIG_IGN for SIGCHLD in the standard
process model of s4.
lib/util/util_runcmd.c