summaryrefslogtreecommitdiffstats
path: root/usr.sbin/eigrpctl
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2015-12-05 15:48:40 +0000
committerclaudio <claudio@openbsd.org>2015-12-05 15:48:40 +0000
commite0e983c1a33b2ac9050176b152555eb5f96663d2 (patch)
tree0d6827a3254b76609d8bc8818a6ab47b44bd11de /usr.sbin/eigrpctl
parentpass a pointer to pf_test()'s reason to pf_test_rule instead of using a (diff)
downloadwireguard-openbsd-e0e983c1a33b2ac9050176b152555eb5f96663d2.tar.xz
wireguard-openbsd-e0e983c1a33b2ac9050176b152555eb5f96663d2.zip
Forgot about eigrp when doing the imsg_read EAGAIN fixes.
Diffstat (limited to 'usr.sbin/eigrpctl')
-rw-r--r--usr.sbin/eigrpctl/eigrpctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/eigrpctl/eigrpctl.c b/usr.sbin/eigrpctl/eigrpctl.c
index 80da2317687..32641672e69 100644
--- a/usr.sbin/eigrpctl/eigrpctl.c
+++ b/usr.sbin/eigrpctl/eigrpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eigrpctl.c,v 1.4 2015/10/29 02:54:29 deraadt Exp $ */
+/* $OpenBSD: eigrpctl.c,v 1.5 2015/12/05 15:48:40 claudio Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@@ -191,7 +191,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");