diff options
| author | 2015-12-05 17:30:34 +0000 | |
|---|---|---|
| committer | 2015-12-05 17:30:34 +0000 | |
| commit | af698d561a8fba4d56bf1b4ac64e1066f33a4938 (patch) | |
| tree | f084d2fa5b82dabcadc16773066d8aef75f50a7c /usr.sbin/vmd/proc.c | |
| parent | sync (diff) | |
| download | wireguard-openbsd-af698d561a8fba4d56bf1b4ac64e1066f33a4938.tar.xz wireguard-openbsd-af698d561a8fba4d56bf1b4ac64e1066f33a4938.zip | |
Another imsg_read user I did miss in my EAGAIN rampage.
Diffstat (limited to 'usr.sbin/vmd/proc.c')
| -rw-r--r-- | usr.sbin/vmd/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/proc.c b/usr.sbin/vmd/proc.c index a3582cf1e33..0db34316ab1 100644 --- a/usr.sbin/vmd/proc.c +++ b/usr.sbin/vmd/proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.c,v 1.3 2015/12/02 13:43:36 reyk Exp $ */ +/* $OpenBSD: proc.c,v 1.4 2015/12/05 17:30:34 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 */ |
