diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2015-12-03 11:42:15 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2015-12-03 11:42:15 +0000 |
commit | e7a2dcbf50908ca990c15fb8c4c872f6c6abe488 (patch) | |
tree | f05656ce12a3211ccccdf14028a516a3b03c6db9 /usr.sbin/ospfctl | |
parent | 9a84919303a9d330dfa8131759539d5c59fa83fd (diff) |
Another imsg_read EAGAIN check. OK benno@
Diffstat (limited to 'usr.sbin/ospfctl')
-rw-r--r-- | usr.sbin/ospfctl/ospfctl.c | 4 |
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"); |