aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/smtp.c3
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);