aboutsummaryrefslogtreecommitdiff
path: root/lib/libopenbsd
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2015-12-09 19:21:00 +0000
committerCraig Rodrigues <rodrigc@FreeBSD.org>2015-12-09 19:21:00 +0000
commitfbb0e1b56a26c2a32d1af7eebc9a855cf7062ea5 (patch)
tree744f66260e3e6679470cd9341b5af3199dd06fbd /lib/libopenbsd
parent5b74e28e80c54de4147fcc198864f70d9fb363b5 (diff)
Notes
Diffstat (limited to 'lib/libopenbsd')
-rw-r--r--lib/libopenbsd/imsg.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libopenbsd/imsg.c b/lib/libopenbsd/imsg.c
index b049881f6a9a..be0fdd1c1bf2 100644
--- a/lib/libopenbsd/imsg.c
+++ b/lib/libopenbsd/imsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imsg.c,v 1.11 2015/11/27 01:57:59 mmcc Exp $ */
+/* $OpenBSD: imsg.c,v 1.12 2015/12/05 13:06:52 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -82,11 +82,9 @@ again:
}
if ((n = recvmsg(ibuf->fd, &msg, 0)) == -1) {
- if (errno == EMSGSIZE)
- goto fail;
- if (errno != EINTR && errno != EAGAIN)
- goto fail;
- goto again;
+ if (errno == EINTR)
+ goto again;
+ goto fail;
}
ibuf->r.wpos += n;