浏览代码

* Move evdns initializing to workers

tags/0.2.7
Vsevolod Stakhov 15 年前
父节点
当前提交
776cb6c82b
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 0
    1
      src/plugins/surbl.c
  2. 4
    0
      src/worker.c

+ 0
- 1
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);

+ 4
- 0
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);


正在加载...
取消
保存