dovecot-1.2: master: Don't crash at quit if there is some unwrit...

dovecot at dovecot.org dovecot at dovecot.org
Mon Feb 2 19:14:59 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/035037f388fa
changeset: 8699:035037f388fa
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Feb 02 12:14:54 2009 -0500
description:
master: Don't crash at quit if there is some unwritten data in logs.

diffstat:

1 file changed, 3 insertions(+), 2 deletions(-)
src/master/main.c |    5 +++--

diffs (22 lines):

diff -r 3aeb924bae35 -r 035037f388fa src/master/main.c
--- a/src/master/main.c	Mon Feb 02 12:12:15 2009 -0500
+++ b/src/master/main.c	Mon Feb 02 12:14:54 2009 -0500
@@ -325,15 +325,16 @@ static void main_deinit(void)
 	auth_processes_deinit();
 	dict_processes_deinit();
 	ssl_deinit();
-	child_processes_deinit();
 
 	listeners_close_fds();
 
 	if (close(null_fd) < 0)
 		i_error("close(null_fd) failed: %m");
 
+	log_deinit();
+	/* log_deinit() may still want to look up child processes */
+	child_processes_deinit();
 	lib_signals_deinit();
-	log_deinit();
 	closelog();
 }
 


More information about the dovecot-cvs mailing list