X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=progress.c;h=d19f80c0bb25928383f8a1aff3f6f49f9a65131c;hb=efb98b44536300f5daed25da3650033a1ce7fdef;hp=4bd650f9ba496786029791bc8a0a40b611bdeb63;hpb=d577bc58a3424f4d0d7f7c8094753b92cb7cb823;p=git.git diff --git a/progress.c b/progress.c index 4bd650f9b..d19f80c0b 100644 --- a/progress.c +++ b/progress.c @@ -98,11 +98,13 @@ static int display(struct progress *progress, unsigned n, const char *done) fprintf(stderr, "%s: %3u%% (%u/%u)%s%s", progress->title, percent, n, progress->total, tp, eol); + fflush(stderr); progress_update = 0; return 1; } } else if (progress_update) { fprintf(stderr, "%s: %u%s%s", progress->title, n, tp, eol); + fflush(stderr); progress_update = 0; return 1; } @@ -207,6 +209,7 @@ struct progress *start_progress_delay(const char *title, unsigned total, if (!progress) { /* unlikely, but here's a good fallback */ fprintf(stderr, "%s...\n", title); + fflush(stderr); return NULL; } progress->title = title;