aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-12-04 17:52:42 +0100
committermarha <marha@users.sourceforge.net>2012-12-04 17:52:42 +0100
commit6e1f3114a922dc8ac7c1ae0c20d64b8f7a0f5ef7 (patch)
treecbca7930d9cca4831ee11171a67476a81430935e /tools
parent2216ff5b2619bb1ff722815df02fae8b87efa327 (diff)
downloadvcxsrv-6e1f3114a922dc8ac7c1ae0c20d64b8f7a0f5ef7.tar.gz
vcxsrv-6e1f3114a922dc8ac7c1ae0c20d64b8f7a0f5ef7.tar.bz2
vcxsrv-6e1f3114a922dc8ac7c1ae0c20d64b8f7a0f5ef7.zip
When writing to stderr flush immediately
Diffstat (limited to 'tools')
-rw-r--r--tools/plink/ssh.c1
1 files changed, 1 insertions, 0 deletions
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)