From cda522186a8ca486b181a764884fd15e079783e5 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 26 Aug 2006 10:59:09 +0000 Subject: [PATCH] It's critically important that the local proxy process should not inherit _our_ ends of its I/O pipes! Otherwise, closing our copy of those handles does not cause it to see EOF on its stdin, because it's holding the pipe open itself. [originally from svn r6808] --- windows/winproxy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/windows/winproxy.c b/windows/winproxy.c index 329cb893..24e68f8a 100644 --- a/windows/winproxy.c +++ b/windows/winproxy.c @@ -182,6 +182,9 @@ Socket platform_new_connection(SockAddr addr, char *hostname, return (Socket)ret; } + SetHandleInformation(us_to_cmd, HANDLE_FLAG_INHERIT, 0); + SetHandleInformation(us_from_cmd, HANDLE_FLAG_INHERIT, 0); + si.cb = sizeof(si); si.lpReserved = NULL; si.lpDesktop = NULL;