From f1ffb6445c910d5b9e64e4f6430afc0bfef60541 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Tue, 30 Nov 2010 15:01:20 +0200 Subject: [PATCH] load_config: always call config_postprocess() otherwise dbs can be in bad state, when something fails --- src/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index ee9436d..047ebbb 100644 --- a/src/main.c +++ b/src/main.c @@ -291,14 +291,15 @@ void load_config(void) /* load users if needed */ if (cf_auth_type >= AUTH_TRUST) load_auth_file(cf_auth_file); - - /* reset pool_size, kill dbs */ - config_postprocess(); } else { + log_warning("Config file loading failed"); /* if ini file missing, dont kill anybody */ set_dbs_dead(false); } + /* reset pool_size, kill dbs */ + config_postprocess() + /* reopen logfile */ if (main_config.loaded) reset_logging(); -- 2.40.0