1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* 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

@ -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 );