summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2015-12-03 11:42:14 +0000
committerclaudio <claudio@openbsd.org>2015-12-03 11:42:14 +0000
commitcc37529c315ee5b50e6795d4d4fbe6457d2f2ece (patch)
treecdb45222ba2a78931c57aac2631f9879efb148d0
parentimsg_read will return EAGAIN in some cases so prep code for it. (diff)
downloadwireguard-openbsd-cc37529c315ee5b50e6795d4d4fbe6457d2f2ece.tar.xz
wireguard-openbsd-cc37529c315ee5b50e6795d4d4fbe6457d2f2ece.zip
Another imsg_read EAGAIN check. OK benno@
-rw-r--r--usr.sbin/ospfctl/ospfctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfctl/ospfctl.c b/usr.sbin/ospfctl/ospfctl.c
index d25a6c66426..81fafbe9fad 100644
--- a/usr.sbin/ospfctl/ospfctl.c
+++ b/usr.sbin/ospfctl/ospfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfctl.c,v 1.62 2015/11/22 13:11:26 claudio Exp $ */
+/* $OpenBSD: ospfctl.c,v 1.63 2015/12/03 11:42:14 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -253,7 +253,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");