summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2016-06-06 20:48:15 +0000
committereric <eric@openbsd.org>2016-06-06 20:48:15 +0000
commit9e44294fc922f855f676d4b00c3e707ce845bf12 (patch)
tree00795576093c4aa568df6a71d03aae80f0186d49
parentAdd ERRORS section, from FreeBSD. OK tedu@ (diff)
downloadwireguard-openbsd-9e44294fc922f855f676d4b00c3e707ce845bf12.tar.xz
wireguard-openbsd-9e44294fc922f855f676d4b00c3e707ce845bf12.zip
do not return on EAGAIN otherwise the event is never reloaded.
ok gilles@
-rw-r--r--usr.sbin/smtpd/mproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/mproc.c b/usr.sbin/smtpd/mproc.c
index f422b6bb2d2..a1c0336a4a5 100644
--- a/usr.sbin/smtpd/mproc.c
+++ b/usr.sbin/smtpd/mproc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mproc.c,v 1.19 2016/03/25 15:06:58 krw Exp $ */
+/* $OpenBSD: mproc.c,v 1.20 2016/06/06 20:48:15 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@faurot.net>
@@ -160,7 +160,7 @@ mproc_dispatch(int fd, short event, void *arg)
switch (n) {
case -1:
if (errno == EAGAIN)
- return;
+ break;
log_warn("warn: %s -> %s: imsg_read",
proc_name(smtpd_process), p->name);
fatal("exiting");