diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-11-01 16:41:38 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-11-01 16:41:38 +0000 |
commit | f230a889c1781037953edef0bba63e1804366850 (patch) | |
tree | 7ac67a4dbd5ac923d6df5e4d2e3ced74cdb9c646 /src/fuzzy_storage.c | |
parent | 1ae2663a7f2dab85cf513bc1f607244a3c3134f4 (diff) | |
download | rspamd-f230a889c1781037953edef0bba63e1804366850.tar.gz rspamd-f230a889c1781037953edef0bba63e1804366850.zip |
Rework signals processing in workers.
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index fec7a13c2..902987118 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -1009,7 +1009,7 @@ start_fuzzy (struct rspamd_worker *worker) gint i; ctx->ev_base = rspamd_prepare_worker (worker, - "controller", + "fuzzy", accept_fuzzy_socket); server_stat = worker->srv->stat; @@ -1023,8 +1023,6 @@ start_fuzzy (struct rspamd_worker *worker) signal_set (&sev, SIGTERM, sigterm_handler, (void *)worker); event_base_set (ctx->ev_base, &sev); signal_add (&sev, NULL); - /* We set wanna_die to 1 as we setup our own SIGTERM handler */ - wanna_die = 1; if (ctx->strict_hash) { static_hash = g_hash_table_new_full (rspamd_str_hash, rspamd_str_equal, |