Mercurial > dovecot > core-2.2
diff src/pop3/main.c @ 16508:754d244b8249
Call master_service_init_finish() only after all of the initialization is done.
This way if the init crashes, the master process will throttle a buggy
service.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 13 Jun 2013 06:07:54 +0300 |
parents | 35194cf0693e |
children | add8c00fb3cc |
line wrap: on
line diff
--- a/src/pop3/main.c Thu Jun 13 05:29:07 2013 +0300 +++ b/src/pop3/main.c Thu Jun 13 06:07:54 2013 +0300 @@ -253,12 +253,12 @@ login_set.callback = login_client_connected; login_set.failure_callback = login_client_failed; - master_service_init_finish(master_service); master_service_set_die_callback(master_service, pop3_die); storage_service = mail_storage_service_init(master_service, set_roots, storage_service_flags); + master_service_init_finish(master_service); /* fake that we're running, so we know if client was destroyed while handling its initial input */