Skip to content

Commit cb09047

Browse files
GeekyShackleboltmiss-islington
authored andcommitted
bpo-32560: inherit the py launcher's STARTUPINFO (GH-9000)
https://bugs.python.org/issue32560
1 parent d08ea70 commit cb09047

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The ``py`` launcher now forwards its ``STARTUPINFO`` structure to child
2+
processes.

PC/launcher.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ run_child(wchar_t * cmdline)
666666
if (!ok)
667667
error(RC_CREATE_PROCESS, L"Job information setting failed");
668668
memset(&si, 0, sizeof(si));
669-
si.cb = sizeof(si);
669+
GetStartupInfoW(&si);
670670
ok = safe_duplicate_handle(GetStdHandle(STD_INPUT_HANDLE), &si.hStdInput);
671671
if (!ok)
672672
error(RC_NO_STD_HANDLES, L"stdin duplication failed");

0 commit comments

Comments
 (0)