Browse Source

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

https://bugs.python.org/issue32560
pull/11744/head
Shiva Saxena 7 years ago
committed by Miss Islington (bot)
parent
commit
cb09047626
  1. 2
      Misc/NEWS.d/next/Windows/2019-02-02-11-02-44.bpo-32560.I5WAGW.rst
  2. 2
      PC/launcher.c

2
Misc/NEWS.d/next/Windows/2019-02-02-11-02-44.bpo-32560.I5WAGW.rst

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

2
PC/launcher.c

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

Loading…
Cancel
Save