From 6e1f3114a922dc8ac7c1ae0c20d64b8f7a0f5ef7 Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 4 Dec 2012 17:52:42 +0100 Subject: When writing to stderr flush immediately --- tools/plink/ssh.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/plink/ssh.c b/tools/plink/ssh.c index 8f1aa15de..bdbbc4fd5 100644 --- a/tools/plink/ssh.c +++ b/tools/plink/ssh.c @@ -1193,6 +1193,7 @@ static void c_write_stderr(int trusted, const char *buf, int len) for (i = 0; i < len; i++) if (buf[i] != '\r' && (trusted || buf[i] == '\n' || (buf[i] & 0x60))) fputc(buf[i], stderr); + fflush(stderr); } static void c_write(Ssh ssh, const char *buf, int len) -- cgit v1.2.3