diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2009-11-03 10:50:57 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2009-11-03 10:50:57 +0000 |
commit | 61c146fb9714dca8452f0ea68b0921f2bc4b1140 (patch) | |
tree | e1f13c5909a9e786446317b5081d6623e9c047db /lib/display/display.c | |
parent | eb82f939ee90919c7132bb0282f3fe7ba3c33e8e (diff) | |
download | lvm2-61c146fb9714dca8452f0ea68b0921f2bc4b1140.tar.gz lvm2-61c146fb9714dca8452f0ea68b0921f2bc4b1140.tar.xz lvm2-61c146fb9714dca8452f0ea68b0921f2bc4b1140.zip |
Add fflush for the case the log is redirected to the buffered file.
Without this patch it have not been obvious, why the application
waits on the stdin as the prompt might be still buffered in memory.
Diffstat (limited to 'lib/display/display.c')
-rw-r--r-- | lib/display/display.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/display/display.c b/lib/display/display.c index 52777435..a7ca9ecf 100644 --- a/lib/display/display.c +++ b/lib/display/display.c @@ -824,6 +824,7 @@ char yes_no_prompt(const char *prompt, ...) va_start(ap, prompt); vprintf(prompt, ap); va_end(ap); + fflush(stdout); } if ((c = getchar()) == EOF) { |