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

https://bugs.python.org/issue32560
(cherry picked from commit cb09047626)

Co-authored-by: Shiva Saxena <shivasaxena911@gmail.com>
This commit is contained in:
Miss Islington (bot) 2019-02-02 11:38:16 -08:00 committed by GitHub
parent 56f84117a7
commit 04b2a5eeda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
The ``py`` launcher now forwards its ``STARTUPINFO`` structure to child
processes.

View file

@ -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");