From: Nikos Mavrogiannopoulos Date: Thu, 23 Sep 2010 08:01:19 +0000 (+0200) Subject: fflush stdout and stderr before the call to setbuf. This fixes issue in solaris where... X-Git-Tag: gnutls_2_11_3~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be59ade6bcdf4d3ea5e30cf14a2d0e2196e4682d;p=thirdparty%2Fgnutls.git fflush stdout and stderr before the call to setbuf. This fixes issue in solaris where lines dissappeared from output. Reported and suggested fix by Knut Anders Hatlen. --- diff --git a/src/cli.c b/src/cli.c index 34bdf7812a..5f5b22f63e 100644 --- a/src/cli.c +++ b/src/cli.c @@ -830,6 +830,9 @@ after_handshake: signal (SIGALRM, &starttls_alarm); #endif + fflush(stdout); + fflush(stderr); + /* do not buffer */ #if !(defined _WIN32 || defined __WIN32__) setbuf (stdin, NULL);