Commit 96607147 966071470036d250da7bb47537bc78adcae7adf5 by Sergey Poznyakoff

(sendmail_send_message): Failing waitpid is

not an error if errno==ECHILD (the calling program might have
ignored SIGCHLD).
1 parent a10aa06e
......@@ -441,11 +441,16 @@ sendmail_send_message (mu_mailer_t mailer, mu_message_t msg, mu_address_t from,
if (rc < 0)
{
if (errno == ECHILD)
status = 0;
else
{
status = errno;
MAILER_DEBUG2 (mailer, MU_DEBUG_TRACE,
"waitpid(%d) failed: %s\n",
sendmail->pid, strerror (status));
}
}
else if (WIFEXITED (exit_status))
{
exit_status = WEXITSTATUS (exit_status);
......