Commit cb090476 authored by Shiva Saxena's avatar Shiva Saxena Committed by Miss Islington (bot)

bpo-32560: inherit the py launcher's STARTUPINFO (GH-9000)



https://bugs.python.org/issue32560
parent d08ea704
The ``py`` launcher now forwards its ``STARTUPINFO`` structure to child
processes.
......@@ -666,7 +666,7 @@ run_child(wchar_t * cmdline)
if (!ok)
error(RC_CREATE_PROCESS, L"Job information setting failed");
memset(&si, 0, sizeof(si));
si.cb = sizeof(si);
GetStartupInfoW(&si);
ok = safe_duplicate_handle(GetStdHandle(STD_INPUT_HANDLE), &si.hStdInput);
if (!ok)
error(RC_NO_STD_HANDLES, L"stdin duplication failed");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment