Fix bug preventing prompting on exit.

This commit is contained in:
Daniel Beer 2010-04-30 22:20:58 +12:00
parent a9dd76bbca
commit 99b53f475b
1 changed files with 5 additions and 0 deletions

View File

@ -552,6 +552,10 @@ static int process_command(cproc_t cp, char *arg, int interactive)
void cproc_reader_loop(cproc_t cp)
{
int old = cp->in_reader_loop;
cp->in_reader_loop = 1;
printf("\n");
cmd_help(cp, NULL);
printf("\n");
@ -570,6 +574,7 @@ void cproc_reader_loop(cproc_t cp)
} while (cproc_prompt_abort(cp, CPROC_MODIFY_SYMS));
printf("\n");
cp->in_reader_loop = old;
}
int cproc_process_command(cproc_t cp, char *cmd)