]> granicus.if.org Git - curl/commitdiff
As Andrés García reported we need to fflush() the data->err so that the
authorDaniel Stenberg <daniel@haxx.se>
Tue, 21 Aug 2001 06:29:56 +0000 (06:29 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 21 Aug 2001 06:29:56 +0000 (06:29 +0000)
progress meter looks better on windows (and if the data->err is redirected
from stderr it also makes a point)

lib/progress.c

index af756a026220ca15f381d54416308b5156cd9022..093c93083a375a0780051738f7516bc9e187b500 100644 (file)
@@ -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;
 }