# HG changeset patch # User Timo Sirainen # Date 1253547385 -10800 # Node ID 0f04c7da33f17dc95bf3946faddf2bb07bfaaf59 # Parent c43bc2a2b44d0bc5be0713e548cac332b9f8d263 dovecot --exec-mail was broken. diff -r c43bc2a2b44d -r 0f04c7da33f1 src/master/main.c --- 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);