]> source.dussan.org Git - rspamd.git/commitdiff
* Init events before configuring resolver in smtp worker
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 12 Jul 2010 12:07:31 +0000 (16:07 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 12 Jul 2010 12:07:31 +0000 (16:07 +0400)
src/smtp.c

index ef157f06dcaf850b94ecccf1bd2962dd001fbda1..4108d56e4cb4d3a9aa811ef4fdfa969caebff18f 100644 (file)
@@ -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);