dovecot-2.0: lib-lda: waitpid() for executed sendmail binary was...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 28 02:41:20 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/748b0fd169d1
changeset: 12858:748b0fd169d1
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 28 02:41:06 2011 +0300
description:
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.

diffstat:

 src/lib-lda/smtp-client.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 0535d79ea686 -r 748b0fd169d1 src/lib-lda/smtp-client.c
--- a/src/lib-lda/smtp-client.c	Tue Jun 28 02:31:12 2011 +0300
+++ b/src/lib-lda/smtp-client.c	Tue Jun 28 02:41:06 2011 +0300
@@ -101,6 +101,7 @@
 
 	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;


More information about the dovecot-cvs mailing list