summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/pony.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/smtpd/pony.c')
-rw-r--r--usr.sbin/smtpd/pony.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/pony.c b/usr.sbin/smtpd/pony.c
index 5883854641a..003804379fd 100644
--- a/usr.sbin/smtpd/pony.c
+++ b/usr.sbin/smtpd/pony.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pony.c,v 1.14 2016/09/01 10:54:25 eric Exp $ */
+/* $OpenBSD: pony.c,v 1.15 2016/09/04 16:10:31 eric Exp $ */
/*
* Copyright (c) 2014 Gilles Chehade <gilles@poolp.org>
@@ -209,9 +209,8 @@ pony(void)
if (pledge("stdio inet unix recvfd sendfd", NULL) == -1)
err(1, "pledge");
- if (event_dispatch() < 0)
- fatal("event_dispatch");
- pony_shutdown();
+ event_dispatch();
+ fatalx("exited event loop");
return (0);
}