diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-12 16:07:31 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-12 16:07:31 +0400 |
commit | 7963b88f75ce6e51d9e90e1a660596bdc5bb5313 (patch) | |
tree | ad299f71dc92bb3e2531d5d367af57ec46bdaf5a /src/smtp.c | |
parent | 1c666736b83f3555f4ceb827850b5903bd0adb00 (diff) | |
download | rspamd-7963b88f75ce6e51d9e90e1a660596bdc5bb5313.tar.gz rspamd-7963b88f75ce6e51d9e90e1a660596bdc5bb5313.zip |
* Init events before configuring resolver in smtp worker
Diffstat (limited to 'src/smtp.c')
-rw-r--r-- | src/smtp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/smtp.c b/src/smtp.c index ef157f06d..4108d56e4 100644 --- a/src/smtp.c +++ b/src/smtp.c @@ -1119,6 +1119,7 @@ start_smtp_worker (struct rspamd_worker *worker) gperf_profiler_init (worker->srv->cfg, "worker"); worker->srv->pid = getpid (); + event_init (); /* Set smtp options */ if ( !config_smtp_worker (worker)) { @@ -1126,8 +1127,6 @@ start_smtp_worker (struct rspamd_worker *worker) exit (EXIT_SUCCESS); } - event_init (); - init_signals (&signals, sig_handler); sigprocmask (SIG_UNBLOCK, &signals.sa_mask, NULL); |