aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-05-05 17:17:29 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-05-05 17:17:29 +0400
commit776cb6c82b310438075155eb61de6f3e5cde6991 (patch)
tree92e7c4161d1d8e58bcd019b1bf7410e53a426f37
parente79394b5d4de8f88e31cbfad8d78a518a96c2999 (diff)
downloadrspamd-776cb6c82b310438075155eb61de6f3e5cde6991.tar.gz
rspamd-776cb6c82b310438075155eb61de6f3e5cde6991.zip
* Move evdns initializing to workers
-rw-r--r--src/plugins/surbl.c1
-rw-r--r--src/worker.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index aacc7120b..a5c1bd4b4 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -87,7 +87,6 @@ surbl_module_config (struct config_file *cfg)
char *value, *cur_tok, *str;
uint32_t bit;
- evdns_init ();
if ((value = get_module_opt (cfg, "surbl", "redirector")) != NULL) {
str = memory_pool_strdup (surbl_module_ctx->surbl_pool, value);
diff --git a/src/worker.c b/src/worker.c
index da454d013..3f223241b 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -36,6 +36,8 @@
#include "modules.h"
#include "message.h"
+#include <evdns.h>
+
#ifndef WITHOUT_PERL
#include <EXTERN.h> /* from the Perl distribution */
#include <perl.h> /* from the Perl distribution */
@@ -343,6 +345,8 @@ start_worker (struct rspamd_worker *worker, int listen_sock)
worker->srv->type = TYPE_WORKER;
event_init ();
+ evdns_init ();
+
init_signals (&signals, sig_handler);
sigprocmask (SIG_UNBLOCK, &signals.sa_mask, NULL);