Skip to content

Commit

Permalink
bpo-32560: inherit the py launcher's STARTUPINFO (GH-9000)
Browse files Browse the repository at this point in the history
https://bugs.python.org/issue32560
(cherry picked from commit cb09047)

Co-authored-by: Shiva Saxena <shivasaxena911@gmail.com>
  • Loading branch information
miss-islington and GeekyShacklebolt committed Feb 2, 2019
1 parent 56f8411 commit 04b2a5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
@@ -0,0 +1,2 @@
The ``py`` launcher now forwards its ``STARTUPINFO`` structure to child
processes.
2 changes: 1 addition & 1 deletion PC/launcher.c
Expand Up @@ -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");
Expand Down

0 comments on commit 04b2a5e

Please sign in to comment.