]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-32560: inherit the py launcher's STARTUPINFO (GH-9000)
authorShiva Saxena <shivasaxena911@gmail.com>
Sat, 2 Feb 2019 19:21:04 +0000 (00:51 +0530)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 2 Feb 2019 19:21:04 +0000 (11:21 -0800)
https://bugs.python.org/issue32560

Misc/NEWS.d/next/Windows/2019-02-02-11-02-44.bpo-32560.I5WAGW.rst [new file with mode: 0644]
PC/launcher.c

diff --git a/Misc/NEWS.d/next/Windows/2019-02-02-11-02-44.bpo-32560.I5WAGW.rst b/Misc/NEWS.d/next/Windows/2019-02-02-11-02-44.bpo-32560.I5WAGW.rst
new file mode 100644 (file)
index 0000000..bf2bf11
--- /dev/null
@@ -0,0 +1,2 @@
+The ``py`` launcher now forwards its ``STARTUPINFO`` structure to child
+processes.
index a78620a8924fdd7143fa603c8ed1b915c85a3cc9..a4e678115f3470c0bd9393e9369a4c79f65e44ca 100644 (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");