From: Timo Sirainen Date: Mon, 27 Jun 2011 23:41:06 +0000 (+0300) Subject: lib-lda: waitpid() for executed sendmail binary wasn't called correctly. X-Git-Tag: 2.0.14~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f21c135cfaea14932c25363e76967e20033deb64;p=thirdparty%2Fdovecot%2Fcore.git lib-lda: waitpid() for executed sendmail binary wasn't called correctly. It may have failed with -ECHILD, if the sendmail binary itself forked other processes. --- diff --git a/src/lib-lda/smtp-client.c b/src/lib-lda/smtp-client.c index fe2a318b6e..50d630523b 100644 --- a/src/lib-lda/smtp-client.c +++ b/src/lib-lda/smtp-client.c @@ -101,6 +101,7 @@ smtp_client_open_sendmail(const struct lda_settings *set, client = i_new(struct smtp_client, 1); client->f = *file_r = fdopen(fd[1], "w"); + client->pid = pid; if (client->f == NULL) i_fatal("fdopen() failed: %m"); return client;