bpo-32560: inherit the py launcher's STARTUPINFO (GH-9000) · python/cpython@04b2a5e (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 04b2a5e

miss-islingtonGeekyShacklebolt

and

authored

File tree

2 files changed

lines changed

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1 +The ``py`` launcher now forwards its ``STARTUPINFO`` structure to child
2 +processes.
Original file line number Diff line number Diff line change
@@ -666,7 +666,7 @@ run_child(wchar_t * cmdline)
666 666 if (!ok)
667 667 error(RC_CREATE_PROCESS, L"Job information setting failed");
668 668 memset(&si, 0, sizeof(si));
669 -si.cb = sizeof(si);
669 +GetStartupInfoW(&si);
670 670 ok = safe_duplicate_handle(GetStdHandle(STD_INPUT_HANDLE), &si.hStdInput);
671 671 if (!ok)
672 672 error(RC_NO_STD_HANDLES, L"stdin duplication failed");