diff options
author | claudio <claudio@openbsd.org> | 2015-12-05 13:15:06 +0000 |
---|---|---|
committer | claudio <claudio@openbsd.org> | 2015-12-05 13:15:06 +0000 |
commit | 96a267fb06202879c2c3a579945d1f304a589414 (patch) | |
tree | f963583c7a101ddefd8368e64c70e65f81be3b1e /usr.sbin/ypldap/ypldap.c | |
parent | EAGAIN handling for imsg_read. OK henning@ benno@ (diff) | |
download | wireguard-openbsd-96a267fb06202879c2c3a579945d1f304a589414.tar.xz wireguard-openbsd-96a267fb06202879c2c3a579945d1f304a589414.zip |
EAGAIN handling for imsg_read. OK henning@ benno@
Diffstat (limited to 'usr.sbin/ypldap/ypldap.c')
-rw-r--r-- | usr.sbin/ypldap/ypldap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ypldap/ypldap.c b/usr.sbin/ypldap/ypldap.c index 331b6b0d08a..0807397665a 100644 --- a/usr.sbin/ypldap/ypldap.c +++ b/usr.sbin/ypldap/ypldap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ypldap.c,v 1.17 2015/11/15 01:31:57 jmatthew Exp $ */ +/* $OpenBSD: ypldap.c,v 1.18 2015/12/05 13:15:06 claudio Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -359,7 +359,7 @@ main_dispatch_client(int fd, short events, void *p) fatalx("unknown event"); if (events & EV_READ) { - if ((n = imsg_read(ibuf)) == -1) + if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN) fatal("imsg_read error"); if (n == 0) shut = 1; |