From a3de090b6f5803bf1aa19da4cff4a52d4f07e05d Mon Sep 17 00:00:00 2001 From: phessler Date: Sun, 26 Apr 2015 11:32:54 +0000 Subject: [PATCH] for every policy we write out, flush the output so we don't get an irritating partially written line --- usr.sbin/bgpctl/irr_output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/bgpctl/irr_output.c b/usr.sbin/bgpctl/irr_output.c index 3a14e9badac..058858a2107 100644 --- a/usr.sbin/bgpctl/irr_output.c +++ b/usr.sbin/bgpctl/irr_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: irr_output.c,v 1.17 2015/04/25 15:28:18 phessler Exp $ */ +/* $OpenBSD: irr_output.c,v 1.18 2015/04/26 11:32:54 phessler Exp $ */ /* * Copyright (c) 2007 Henning Brauer @@ -97,6 +97,7 @@ process_policies(FILE *fh, struct policy_head *head) policy_prettyprint(fh, pi); policy_torule(fh, pi); + fflush(fh); free(pi->peer_addr); free(pi->action); -- 2.20.1