From 70aa25d01856f6f9cd3f135bf29b946f09cdbcba Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Fri, 9 Mar 2001 18:18:42 +0000 Subject: [PATCH] isc_app_block() could be called twice with no _unblock() between them. --- bin/nsupdate/nsupdate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index 9ab7dcc152..cfb77a8870 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: nsupdate.c,v 1.82 2001/02/24 21:02:38 bwelling Exp $ */ +/* $Id: nsupdate.c,v 1.83 2001/03/09 18:18:42 bwelling Exp $ */ #include @@ -1233,7 +1233,9 @@ get_next_command(void) { ddebug("get_next_command()"); if (interactive) fprintf(stdout, "> "); + isc_app_block(); cmdline = fgets(cmdlinebuf, MAXCMD, input); + isc_app_unblock(); if (cmdline == NULL) return (STATUS_QUIT); word = nsu_strsep(&cmdline, " \t\r\n"); @@ -1711,9 +1713,7 @@ getinput(isc_task_t *task, isc_event_t *event) { return; } reset_system(); - isc_app_block(); more = user_interaction(); - isc_app_unblock(); if (!more) { isc_app_shutdown(); return;