dovecot-2.1: login: Call master_service_init_finish() later.

dovecot at dovecot.org dovecot at dovecot.org
Fri Nov 18 21:37:47 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/ba1f99456742
changeset: 13727:ba1f99456742
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Nov 18 21:37:34 2011 +0200
description:
login: Call master_service_init_finish() later.
This prevents automatic infinite process respawns if SSL initialization
fails.

diffstat:

 src/login-common/main.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (15 lines):

diff -r c6f5203bf59f -r ba1f99456742 src/login-common/main.c
--- a/src/login-common/main.c	Fri Nov 18 21:35:52 2011 +0200
+++ b/src/login-common/main.c	Fri Nov 18 21:37:34 2011 +0200
@@ -382,10 +382,8 @@
 		login_settings_read(set_pool, NULL, NULL, NULL,
 				    &global_other_settings);
 
-	/* main_preinit() needs to know the client limit, which is set by
-	   this. so call it first. */
+	main_preinit(allow_core_dumps);
 	master_service_init_finish(master_service);
-	main_preinit(allow_core_dumps);
 	main_init(login_socket);
 
 	master_service_run(master_service, client_connected);


More information about the dovecot-cvs mailing list