diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-18 13:20:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-18 13:20:48 +0100 |
commit | 7af6094223050dffe990ee7a28d4b495bc4a00b6 (patch) | |
tree | f71779f13040cd5428df265dc0f2d07233df51af /src/rspamd.c | |
parent | 53972f37027ad4a293f7f8db7e31e7bc35bc1d4b (diff) | |
download | rspamd-7af6094223050dffe990ee7a28d4b495bc4a00b6.tar.gz rspamd-7af6094223050dffe990ee7a28d4b495bc4a00b6.zip |
[Fix] Fix reloading on SIGHUP
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 5692e315b..056de6e12 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -280,7 +280,8 @@ reread_config (struct rspamd_main *rspamd_main) /* Save some variables */ tmp_cfg->cfg_name = cfg_file; - if (!load_rspamd_config (rspamd_main, tmp_cfg, FALSE, RSPAMD_CONFIG_INIT_VALIDATE)) { + if (!load_rspamd_config (rspamd_main, tmp_cfg, TRUE, + RSPAMD_CONFIG_INIT_VALIDATE|RSPAMD_CONFIG_INIT_SYMCACHE)) { rspamd_set_logger (rspamd_main->cfg, g_quark_try_string ( "main"), rspamd_main); msg_err_main ("cannot parse new config file, revert to old one"); @@ -297,7 +298,6 @@ reread_config (struct rspamd_main *rspamd_main) rspamd_main->cfg->log_level = G_LOG_LEVEL_DEBUG; } - rspamd_init_filters (rspamd_main->cfg, TRUE); msg_info_main ("config has been reread successfully"); } } |