diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-09-02 20:24:41 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-09-02 20:24:41 +0400 |
commit | 07a2e0b3c8ac8249f35423ab79b23b6b5ab11c51 (patch) | |
tree | 231437d521e228e95de289f15b1fcc4878db4b03 /src/main.c | |
parent | 5086821ae43d0283ed8b839c847ca267c3c81d2c (diff) | |
download | rspamd-07a2e0b3c8ac8249f35423ab79b23b6b5ab11c51.tar.gz rspamd-07a2e0b3c8ac8249f35423ab79b23b6b5ab11c51.zip |
* Many fixes to statfile syncronization system
* Fixed statfile pool initialization and synchronization with disk
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 9db7df75d..b196bd3ea 100644 --- a/src/main.c +++ b/src/main.c @@ -903,7 +903,7 @@ main (int argc, char **argv, char **env) setproctitle ("main process"); /* Init statfile pool */ - rspamd->statfile_pool = statfile_pool_new (rspamd->cfg->max_statfile_size); + rspamd->statfile_pool = statfile_pool_new (rspamd->server_pool, rspamd->cfg->max_statfile_size); event_init (); g_mime_init (0); @@ -1002,6 +1002,8 @@ main (int argc, char **argv, char **env) msg_info ("terminating..."); + statfile_pool_delete (rspamd->statfile_pool); + close_log (); free_config (rspamd->cfg); |