From: Mark Andrews Date: Mon, 7 Jun 2004 03:59:08 +0000 (+0000) Subject: 1650. [bug] dig, nslookup: flush standard out after each command. X-Git-Tag: v9.2.3rc4^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03221617f8ec19ea4b76f4d04b80c4e978a9d5ab;p=thirdparty%2Fbind9.git 1650. [bug] dig, nslookup: flush standard out after each command. --- diff --git a/CHANGES b/CHANGES index a9f897069f2..1b1bb4d0f80 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +1650. [bug] dig, nslookup: flush standard out after each command. + 1649. [bug] Silence "unexpected non-minimal diff" message. [RT #11206] diff --git a/bin/dig/dig.c b/bin/dig/dig.c index 25702322543..b401dc72abc 100644 --- a/bin/dig/dig.c +++ b/bin/dig/dig.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dig.c,v 1.157.2.15 2004/03/09 06:09:12 marka Exp $ */ +/* $Id: dig.c,v 1.157.2.16 2004/06/07 03:59:08 marka Exp $ */ #include #include @@ -1330,6 +1330,7 @@ dighost_shutdown(void) { return; } + fflush(stdout); if (feof(batchfp)) { batchname = NULL; isc_app_shutdown(); diff --git a/bin/dig/nslookup.c b/bin/dig/nslookup.c index a01bae4b3ed..28244b685e4 100644 --- a/bin/dig/nslookup.c +++ b/bin/dig/nslookup.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: nslookup.c,v 1.90.2.6 2004/03/09 06:09:13 marka Exp $ */ +/* $Id: nslookup.c,v 1.90.2.7 2004/06/07 03:59:08 marka Exp $ */ #include @@ -703,6 +703,7 @@ get_next_command(void) { char *ptr, *arg; char *input; + fflush(stdout); buf = isc_mem_allocate(mctx, COMMSIZE); if (buf == NULL) fatal("memory allocation failure");