1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

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.
This commit is contained in:
Zdenek Kabelac 2009-11-03 10:50:57 +00:00
parent eb82f939ee
commit 61c146fb97
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.55 -
===================================
Flush stdout after yes/no prompt.
Update vgsplit and vgcreate to use vg_set_clustered.
Add vg_mda_count and vg_set_clustered library function.
Add more vgcreate and vgsplit nightly tests.

View File

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