summaryrefslogtreecommitdiffstats
path: root/usr.sbin/httpd/proc.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2015-12-05 13:15:27 +0000
committerclaudio <claudio@openbsd.org>2015-12-05 13:15:27 +0000
commit202448a55a241d043f84b736bd29f8215af06409 (patch)
treedc77102712209bacd28368282f332bdbf8c87a71 /usr.sbin/httpd/proc.c
parentEAGAIN handling for imsg_read. OK henning@ benno@ (diff)
downloadwireguard-openbsd-202448a55a241d043f84b736bd29f8215af06409.tar.xz
wireguard-openbsd-202448a55a241d043f84b736bd29f8215af06409.zip
EAGAIN handling for imsg_read. OK henning@ benno@
Diffstat (limited to 'usr.sbin/httpd/proc.c')
-rw-r--r--usr.sbin/httpd/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/httpd/proc.c b/usr.sbin/httpd/proc.c
index f3561f0de52..646281a92d0 100644
--- a/usr.sbin/httpd/proc.c
+++ b/usr.sbin/httpd/proc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proc.c,v 1.13 2015/12/02 15:13:00 reyk Exp $ */
+/* $OpenBSD: proc.c,v 1.14 2015/12/05 13:15:27 claudio Exp $ */
/*
* Copyright (c) 2010 - 2014 Reyk Floeter <reyk@openbsd.org>
@@ -452,7 +452,7 @@ proc_dispatch(int fd, short event, void *arg)
ibuf = &iev->ibuf;
if (event & EV_READ) {
- if ((n = imsg_read(ibuf)) == -1)
+ if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN)
fatal(__func__);
if (n == 0) {
/* this pipe is dead, so remove the event handler */