It's critically important that the local proxy process should not
[u/mdw/putty] / windows / winproxy.c
index 329cb89..24e68f8 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