* status.c (do_get_from_fd): Flush stdout if status isn't flushing it for

us.  This guarantees that any menus that were displayed before the prompt
don't get stuck in a buffer.  Noted by Peter Palfrader.  This is Debian
bug #254072.
This commit is contained in:
David Shaw 2004-07-21 03:21:36 +00:00
parent 102408f458
commit 4340b6765e
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2004-07-20 David Shaw <dshaw@jabberwocky.com>
* status.c (do_get_from_fd): Flush stdout if status isn't flushing
it for us. This guarantees that any menus that were displayed
before the prompt don't get stuck in a buffer. Noted by Peter
Palfrader. This is Debian bug #254072.
2004-07-20 Werner Koch <wk@gnupg.org>
* plaintext.c (handle_plaintext): Make number buffer larger. With

View File

@ -538,6 +538,9 @@ do_get_from_fd( const char *keyword, int hidden, int bool )
int i, len;
char *string;
if(statusfp!=stdout)
fflush(stdout);
write_status_text( bool? STATUS_GET_BOOL :
hidden? STATUS_GET_HIDDEN : STATUS_GET_LINE, keyword );