diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-10-23 21:37:38 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-10-23 21:37:38 +0100 |
commit | c85595e6230a5563055eabd69135c8342d31b207 (patch) | |
tree | 1f407d53cb1661a7552a9e73c58c71724b1df7d8 /src/rspamd.c | |
parent | 63c6d3080d531e7eb4bf32ac985408dbd0513c6b (diff) | |
download | rspamd-c85595e6230a5563055eabd69135c8342d31b207.tar.gz rspamd-c85595e6230a5563055eabd69135c8342d31b207.zip |
[Project] Rework cleanup
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 3779e7f8e..d8371de55 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -53,6 +53,10 @@ #include "sqlite3.h" #include "contrib/libev/ev.h" +#ifdef WITH_HYPERSCAN +#include "libserver/hyperscan_tools.h" +#endif + /* 2 seconds to fork new process in place of dead one */ #define SOFT_FORK_TIME 2 @@ -1643,6 +1647,9 @@ main (gint argc, gchar **argv, gchar **env) msg_info_main ("terminating..."); +#ifdef WITH_HYPERSCAN + rspamd_hyperscan_cleanup_maybe(); +#endif REF_RELEASE (rspamd_main->cfg); rspamd_log_close (rspamd_main->logger); g_hash_table_unref (rspamd_main->spairs); |