From: simon Date: Sat, 26 Aug 2006 10:59:09 +0000 (+0000) Subject: It's critically important that the local proxy process should not X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/616741f32a737383dac1d19a7ef9020dabc39d45 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. git-svn-id: svn://svn.tartarus.org/sgt/putty@6808 cda61777-01e9-0310-a592-d414129be87e --- 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;