]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2043. [port] nsupdate/nslookup: Force the flushing of the prompt
authorMark Andrews <marka@isc.org>
Fri, 9 Jun 2006 07:29:24 +0000 (07:29 +0000)
committerMark Andrews <marka@isc.org>
Fri, 9 Jun 2006 07:29:24 +0000 (07:29 +0000)
                        for interactive sessions. [RT#16148]

CHANGES
bin/dig/nslookup.c
bin/nsupdate/nsupdate.c

diff --git a/CHANGES b/CHANGES
index 03bbb677becb09c8b5d5b12c3a08a8166edf69a3..680b79865cf080c5e4a4200c99ba54767afc6474 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2043.  [port]          nsupdate/nslookup: Force the flushing of the prompt
+                       for interactive sessions. [RT#16148]
+
 2038.  [bug]           dig/nslookup/host was unlinking from wrong list
                        when handling errors. [RT #16122]
 
index ab9ed68764c880aa4a11afde68265f5e3db32248..4f10878ca8d4e8e07ed72ac828077b5c11b7627d 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: nslookup.c,v 1.90.2.4.2.10 2005/07/12 05:47:42 marka Exp $ */
+/* $Id: nslookup.c,v 1.90.2.4.2.11 2006/06/09 07:29:24 marka Exp $ */
 
 #include <config.h>
 
@@ -708,6 +708,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();
index a7062cbc358f31c692447dcff393b687e155d2cc..107d85f980399711448d15c2290502dd356e3699 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: nsupdate.c,v 1.103.2.15.2.22 2006/01/07 00:23:33 marka Exp $ */
+/* $Id: nsupdate.c,v 1.103.2.15.2.23 2006/06/09 07:29:24 marka Exp $ */
 
 #include <config.h>
 
@@ -1343,8 +1343,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();