changeset 13133:748b0fd169d1

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.
author Timo Sirainen <tss@iki.fi>
date Tue, 28 Jun 2011 02:41:06 +0300
parents 0535d79ea686
children 4285147ed694
files src/lib-lda/smtp-client.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;