summaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-12-05 14:01:09 +0000
committerThomas Adam <thomas@xteddy.org>2015-12-05 14:01:09 +0000
commit8ae9329aa83dd0772c904a7172de12c0a1aadd7a (patch)
treebb38c106e8ab6013bf6b19f915bc2dc4334e7175 /proc.c
parent4d5cab408555341b64be10bf4fbd86a4d6415749 (diff)
parent0417f1f2bef1e8899dad4564db797250ae2c8c49 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index f84ecf92..360d909b 100644
--- a/proc.c
+++ b/proc.c
@@ -59,7 +59,8 @@ proc_event_cb(__unused int fd, short events, void *arg)
struct imsg imsg;
if (!(peer->flags & PEER_BAD) && (events & EV_READ)) {
- if ((n = imsg_read(&peer->ibuf)) == -1 || n == 0) {
+ if (((n = imsg_read(&peer->ibuf)) == -1 && errno != EAGAIN) ||
+ n == 0) {
peer->dispatchcb(NULL, peer->arg);
return;
}