diff options
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r-- | usr.sbin/smtpd/smtpd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index 0eec8b54a91..4399e308e91 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.216 2014/04/01 09:00:46 gilles Exp $ */ +/* $OpenBSD: smtpd.c,v 1.217 2014/04/04 13:13:58 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -616,7 +616,6 @@ main(int argc, char *argv[]) if (!queue_init(backend_queue, 1)) errx(1, "could not initialize queue backend"); - purge_task(); env->sc_stat = stat_backend_lookup(backend_stat); if (env->sc_stat == NULL) @@ -691,6 +690,8 @@ main(int argc, char *argv[]) if (pidfile(NULL) < 0) err(1, "pidfile"); + purge_task(); + if (event_dispatch() < 0) fatal("smtpd: event_dispatch"); |