[X2Go-Commits] [vcxsrv] 05/11: After every output flush the file buffers

git-admin at x2go.org git-admin at x2go.org
Tue May 3 13:47:19 CEST 2016


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch release/1.17.0.0-x
in repository vcxsrv.

commit de1b34b708c74709fcea10fd84408ea794cbb20c
Author: marha <marha at users.sourceforge.net>
Date:   Sun Jun 28 12:59:18 2015 +0200

    After every output flush the file buffers
---
 tools/plink/wincons.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/plink/wincons.c b/tools/plink/wincons.c
index 508be3f..ea178de 100644
--- a/tools/plink/wincons.c
+++ b/tools/plink/wincons.c
@@ -302,6 +302,7 @@ static void console_data_untrusted(HANDLE hout, const char *data, int len)
     DWORD dummy;
     /* FIXME: control-character filtering */
     WriteFile(hout, data, len, &dummy, NULL);
+    FlushFileBuffers(hout);
 }
 
 int console_get_userpass_input(prompts_t *p, unsigned char *in, int inlen)
@@ -407,6 +408,7 @@ int console_get_userpass_input(prompts_t *p, unsigned char *in, int inlen)
 	if (!pr->echo) {
 	    DWORD dummy;
 	    WriteFile(hout, "\r\n", 2, &dummy, NULL);
+	    FlushFileBuffers(hout);
 	}
 
         if (len < 0) {

--
Alioth's /srv/git/code.x2go.org/vcxsrv.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/vcxsrv.git


More information about the x2go-commits mailing list