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,10 +441,15 @@ sendmail_send_message (mu_mailer_t mailer, mu_message_t msg, mu_address_t from,
if (rc < 0)
{
status = errno;
MAILER_DEBUG2 (mailer, MU_DEBUG_TRACE,
"waitpid(%d) failed: %s\n",
sendmail->pid, strerror (status));
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))
{
......