summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldapctl/ldapctl.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2015-12-05 13:19:13 +0000
committerclaudio <claudio@openbsd.org>2015-12-05 13:19:13 +0000
commitc1f1fd49e1ee9adeb59fbede4c82b4c480de52e3 (patch)
treed021d837bc853ca68cc02fddd89b1c2e7a5c6a8a /usr.sbin/ldapctl/ldapctl.c
parentEAGAIN handling for imsg_read. OK henning@ benno@ (diff)
downloadwireguard-openbsd-c1f1fd49e1ee9adeb59fbede4c82b4c480de52e3.tar.xz
wireguard-openbsd-c1f1fd49e1ee9adeb59fbede4c82b4c480de52e3.zip
EAGAIN handling for imsg_read. OK henning@ benno@
Diffstat (limited to 'usr.sbin/ldapctl/ldapctl.c')
-rw-r--r--usr.sbin/ldapctl/ldapctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldapctl/ldapctl.c b/usr.sbin/ldapctl/ldapctl.c
index 2c3e3a2b01b..db429978340 100644
--- a/usr.sbin/ldapctl/ldapctl.c
+++ b/usr.sbin/ldapctl/ldapctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldapctl.c,v 1.6 2015/11/01 07:39:28 jmatthew Exp $ */
+/* $OpenBSD: ldapctl.c,v 1.7 2015/12/05 13:19:13 claudio Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
@@ -342,7 +342,7 @@ main(int argc, char *argv[])
err(1, "write error");
while (!done) {
- if ((n = imsg_read(&ibuf)) == -1)
+ if ((n = imsg_read(&ibuf)) == -1 && errno != EAGAIN)
errx(1, "imsg_read error");
if (n == 0)
errx(1, "pipe closed");