From d5fbfa3d0b975c112ff55d4924530ed3c69edd89 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Tue, 21 Aug 2001 06:29:56 +0000
Subject: [PATCH] =?UTF-8?q?As=20Andr=E9s=20Garc=EDa=20reported=20we=20need?=
 =?UTF-8?q?=20to=20fflush()=20the=20data->err=20so=20that=20the=20progress?=
 =?UTF-8?q?=20meter=20looks=20better=20on=20windows=20(and=20if=20the=20da?=
 =?UTF-8?q?ta->err=20is=20redirected=20from=20stderr=20it=20also=20makes?=
 =?UTF-8?q?=20a=20point)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/progress.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/progress.c b/lib/progress.c
index af756a0262..093c93083a 100644
--- a/lib/progress.c
+++ b/lib/progress.c
@@ -327,5 +327,8 @@ int Curl_pgrsUpdate(struct connectdata *conn)
           max5data(data->progress.current_speed, max5[5]) /* current speed */
           );
 
+  /* we flush the output stream to make it appear as soon as possible */
+  fflush(data->err);
+
   return 0;
 }
-- 
GitLab