From: Vsevolod Stakhov Date: Mon, 12 Jul 2010 12:07:31 +0000 (+0400) Subject: * Init events before configuring resolver in smtp worker X-Git-Tag: 0.3.1~53 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7963b88f75ce6e51d9e90e1a660596bdc5bb5313;p=rspamd.git * Init events before configuring resolver in smtp worker --- 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);