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

for interactive sessions. [RT#16148]
This commit is contained in:
Mark Andrews 2006-06-09 07:26:42 +00:00
parent c7efca8420
commit 08eadd404a
3 changed files with 9 additions and 3 deletions

View file

@ -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]

View file

@ -15,7 +15,7 @@
* 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>
@ -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();

View file

@ -15,7 +15,7 @@
* 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 */
@ -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();