]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
It's critically important that the local proxy process should not
authorSimon Tatham <anakin@pobox.com>
Sat, 26 Aug 2006 10:59:09 +0000 (10:59 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 26 Aug 2006 10:59:09 +0000 (10:59 +0000)
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

index 329cb89330019428add10574d498b0beb5c880b6..24e68f8ae34d1aec25867565ce2ce67d91a7f347 100644 (file)
@@ -182,6 +182,9 @@ Socket platform_new_connection(SockAddr addr, char *hostname,
        return (Socket)ret;\r
     }\r
 \r
+    SetHandleInformation(us_to_cmd, HANDLE_FLAG_INHERIT, 0);\r
+    SetHandleInformation(us_from_cmd, HANDLE_FLAG_INHERIT, 0);\r
+\r
     si.cb = sizeof(si);\r
     si.lpReserved = NULL;\r
     si.lpDesktop = NULL;\r