From: phessler Date: Sun, 26 Apr 2015 11:32:54 +0000 (+0000) Subject: for every policy we write out, flush the output so we don't get an X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a3de090b6f5803bf1aa19da4cff4a52d4f07e05d;p=openbsd for every policy we write out, flush the output so we don't get an irritating partially written line --- 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);