From e7a2dcbf50908ca990c15fb8c4c872f6c6abe488 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 3 Dec 2015 11:42:15 +0000 Subject: Another imsg_read EAGAIN check. OK benno@ --- usr.sbin/ospfctl/ospfctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ospfctl') 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 @@ -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"); -- cgit v1.2.3