changeset 9386:0f04c7da33f1 HEAD

dovecot --exec-mail was broken.
author Timo Sirainen <tss@iki.fi>
date Mon, 21 Sep 2009 18:36:25 +0300
parents c43bc2a2b44d
children b1293abca645
files src/master/main.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/master/main.c	Sun Sep 13 22:12:35 2009 -0400
+++ b/src/master/main.c	Mon Sep 21 18:36:25 2009 +0300
@@ -614,8 +614,6 @@
 			sizeof(ssl_manual_key_password));
 	} T_END;
 
-	open_std_fds();
-
 	/* save TZ environment. AIX depends on it to get the timezone
 	   correctly. */
 	env_tz = getenv("TZ");
@@ -636,6 +634,9 @@
 		mail_process_exec(exec_protocol, exec_args);
 	}
 
+	/* closes stdin/stdout, must be after --exec-mail handling */
+	open_std_fds();
+
 	/* log all errors to both stderr and log file until we've finished
 	   startup. */
 	set_tee_logfile(settings_root->defaults);