summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ripd/ripd.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2015-12-05 13:13:47 +0000
committerclaudio <claudio@openbsd.org>2015-12-05 13:13:47 +0000
commit79e8bbf6a1da96027c414cde8bac0cad2676d515 (patch)
tree9502704dd9435b60c2d7f8924607d730fcc27d86 /usr.sbin/ripd/ripd.c
parentEAGAIN handling for imsg_read. OK henning@ benno@ (diff)
downloadwireguard-openbsd-79e8bbf6a1da96027c414cde8bac0cad2676d515.tar.xz
wireguard-openbsd-79e8bbf6a1da96027c414cde8bac0cad2676d515.zip
EAGAIN handling for imsg_read. OK henning@ benno@
Diffstat (limited to 'usr.sbin/ripd/ripd.c')
-rw-r--r--usr.sbin/ripd/ripd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ripd/ripd.c b/usr.sbin/ripd/ripd.c
index efaeba35db0..a3d69366359 100644
--- a/usr.sbin/ripd/ripd.c
+++ b/usr.sbin/ripd/ripd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ripd.c,v 1.25 2015/02/09 12:13:42 claudio Exp $ */
+/* $OpenBSD: ripd.c,v 1.26 2015/12/05 13:13:47 claudio Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -342,7 +342,7 @@ main_dispatch_ripe(int fd, short event, void *bula)
int shut = 0, verbose;
if (event & EV_READ) {
- if ((n = imsg_read(ibuf)) == -1)
+ if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN)
fatal("imsg_read error");
if (n == 0) /* connection closed */
shut = 1;
@@ -421,7 +421,7 @@ main_dispatch_rde(int fd, short event, void *bula)
int shut = 0;
if (event & EV_READ) {
- if ((n = imsg_read(ibuf)) == -1)
+ if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN)
fatal("imsg_read error");
if (n == 0) /* connection closed */
shut = 1;