index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-04-01 15:16:26 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-04-01 15:18:52 -0500 |
commit | d8d89d8d27794d493ed2aa9eba4649e6e3ff4a9d (patch) | |
tree | 07b32f59cc65835ae6b9045226683c4f3a201f19 /src | |
parent | 7f6d986ac93e3465db6a4ed5c3ac77b72d890e68 (diff) |
-rw-r--r-- | src/pacman/util.c | 5 |
diff --git a/src/pacman/util.c b/src/pacman/util.c index 83368085..c7d98540 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -878,6 +878,10 @@ static int question(short preset, char *fmt, va_list args) stream = stderr; } + /* ensure all text makes it to the screen before we prompt the user */ + fflush(stdout); + fflush(stderr); + vfprintf(stream, fmt, args); if(preset) { @@ -891,6 +895,7 @@ static int question(short preset, char *fmt, va_list args) return(preset); } + fflush(stream); if(fgets(response, sizeof(response), stdin)) { strtrim(response); if(strlen(response) == 0) { |