diff options
Diffstat (limited to 'usr.sbin/ripd/rde.c')
-rw-r--r-- | usr.sbin/ripd/rde.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ripd/rde.c b/usr.sbin/ripd/rde.c index 79f033b1f88..e2fed2672d2 100644 --- a/usr.sbin/ripd/rde.c +++ b/usr.sbin/ripd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.18 2015/01/16 06:40:20 deraadt Exp $ */ +/* $OpenBSD: rde.c,v 1.19 2015/12/05 13:13:47 claudio Exp $ */ /* * Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it> @@ -193,7 +193,7 @@ rde_dispatch_imsg(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; @@ -207,7 +207,7 @@ rde_dispatch_imsg(int fd, short event, void *bula) for (;;) { if ((n = imsg_get(ibuf, &imsg)) == -1) - fatal("rde_dispatch_imsg: imsg_read error"); + fatal("rde_dispatch_imsg: imsg_get error"); if (n == 0) break; @@ -295,7 +295,7 @@ rde_dispatch_parent(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; @@ -309,7 +309,7 @@ rde_dispatch_parent(int fd, short event, void *bula) for (;;) { if ((n = imsg_get(ibuf, &imsg)) == -1) - fatal("rde_dispatch_parent: imsg_read error"); + fatal("rde_dispatch_parent: imsg_get error"); if (n == 0) break; |