From d7177afbc2012804831c432b43908bf5de48cbc5 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 9 Jun 2006 07:30:28 +0000 Subject: [PATCH] 2043. [port] nsupdate/nslookup: Force the flushing of the prompt for interactive sessions. [RT#16148] --- CHANGES | 3 +++ bin/dig/nslookup.c | 3 ++- bin/nsupdate/nsupdate.c | 6 ++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 9c6531370a..14f7044833 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2043. [port] nsupdate/nslookup: Force the flushing of the prompt + for interactive sessions. [RT#16148] + 2042. [bug] named-checkconf was incorrectly rejecting the logging category "config". [RT #16117] diff --git a/bin/dig/nslookup.c b/bin/dig/nslookup.c index 861fad76a9..abf78ae7cc 100644 --- a/bin/dig/nslookup.c +++ b/bin/dig/nslookup.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: nslookup.c,v 1.101.18.9 2005/08/25 00:43:25 marka Exp $ */ +/* $Id: nslookup.c,v 1.101.18.10 2006/06/09 07:30:27 marka Exp $ */ #include @@ -715,6 +715,7 @@ get_next_command(void) { if (buf == NULL) fatal("memory allocation failure"); fputs("> ", stderr); + fflush(stderr); isc_app_block(); ptr = fgets(buf, COMMSIZE, stdin); isc_app_unblock(); diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index f84fc54c4f..cd81ec87f1 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: nsupdate.c,v 1.130.18.13 2006/03/02 23:19:20 marka Exp $ */ +/* $Id: nsupdate.c,v 1.130.18.14 2006/06/09 07:30:28 marka Exp $ */ /*! \file */ @@ -1499,8 +1499,10 @@ get_next_command(void) { char *word; ddebug("get_next_command()"); - if (interactive) + if (interactive) { fprintf(stdout, "> "); + fflush(stdout); + } isc_app_block(); cmdline = fgets(cmdlinebuf, MAXCMD, input); isc_app_unblock();