зеркало из https://github.com/github/putty.git
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]
This commit is contained in:
Родитель
421a5ece2c
Коммит
cda522186a
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче