Commit 08eadd40 authored by Mark Andrews's avatar Mark Andrews
Browse files

2043. [port] nsupdate/nslookup: Force the flushing of the prompt

                        for interactive sessions. [RT#16148]
parent c7efca84
2043. [port] nsupdate/nslookup: Force the flushing of the prompt
for interactive sessions. [RT#16148]
2042. [bug] named-checkconf was incorrectly rejecting the 2042. [bug] named-checkconf was incorrectly rejecting the
logging category "config". [RT #16117] logging category "config". [RT #16117]
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: nslookup.c,v 1.111 2005/08/25 00:40:50 marka Exp $ */ /* $Id: nslookup.c,v 1.112 2006/06/09 07:26:42 marka Exp $ */
#include <config.h> #include <config.h>
...@@ -715,6 +715,7 @@ get_next_command(void) { ...@@ -715,6 +715,7 @@ get_next_command(void) {
if (buf == NULL) if (buf == NULL)
fatal("memory allocation failure"); fatal("memory allocation failure");
fputs("> ", stderr); fputs("> ", stderr);
fflush(stderr);
isc_app_block(); isc_app_block();
ptr = fgets(buf, COMMSIZE, stdin); ptr = fgets(buf, COMMSIZE, stdin);
isc_app_unblock(); isc_app_unblock();
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: nsupdate.c,v 1.143 2006/03/02 01:57:20 marka Exp $ */ /* $Id: nsupdate.c,v 1.144 2006/06/09 07:26:42 marka Exp $ */
/*! \file */ /*! \file */
...@@ -1499,8 +1499,10 @@ get_next_command(void) { ...@@ -1499,8 +1499,10 @@ get_next_command(void) {
char *word; char *word;
ddebug("get_next_command()"); ddebug("get_next_command()");
if (interactive) if (interactive) {
fprintf(stdout, "> "); fprintf(stdout, "> ");
fflush(stdout);
}
isc_app_block(); isc_app_block();
cmdline = fgets(cmdlinebuf, MAXCMD, input); cmdline = fgets(cmdlinebuf, MAXCMD, input);
isc_app_unblock(); isc_app_unblock();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment