From 6d8a6aef094c162f46a8b9be6a118a502fabca61 Mon Sep 17 00:00:00 2001 From: Simo Leone Date: Mon, 24 Nov 2008 23:31:10 -0600 Subject: Add flush after downloading message When the output is going to a file, glibc seems to buffer way too much making it hard to monitor progress while tailing a file. Signed-off-by: Simo Leone Signed-off-by: Dan McGee --- src/pacman/callback.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 82dabae3..6f41df7c 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -446,6 +446,7 @@ void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total) if(config->noprogressbar || file_total == -1) { if(file_xfered == 0) { printf(_("downloading %s...\n"), filename); + fflush(stdout); } return; } -- cgit v1.2.3-54-g00ecf