dovecot-2.2: master: Don't close stderr. If log process fails at...

dovecot at dovecot.org dovecot at dovecot.org
Mon Feb 18 07:13:03 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/cc681437372a
changeset: 15828:cc681437372a
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Feb 18 07:12:44 2013 +0200
description:
master: Don't close stderr. If log process fails at startup, the errors are logged there.

diffstat:

 src/master/main.c |  6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diffs (16 lines):

diff -r 420477745a17 -r cc681437372a src/master/main.c
--- a/src/master/main.c	Mon Feb 18 06:49:57 2013 +0200
+++ b/src/master/main.c	Mon Feb 18 07:12:44 2013 +0200
@@ -894,12 +894,6 @@
 	if (chdir(set->base_dir) < 0)
 		i_fatal("chdir(%s) failed: %m", set->base_dir);
 
-	if (strcmp(services->service_set->log_path, "/dev/stderr") != 0 &&
-	    strcmp(services->service_set->info_log_path, "/dev/stderr") != 0 &&
-	    strcmp(services->service_set->debug_log_path, "/dev/stderr") != 0) {
-		if (dup2(null_fd, STDERR_FILENO) < 0)
-			i_fatal("dup2(null_fd) failed: %m");
-	}
 	i_set_fatal_handler(master_fatal_callback);
 	i_set_error_handler(orig_error_callback);
 


More information about the dovecot-cvs mailing list