Skip to content

bpo-34812: subprocess._args_from_interpreter_flags(): add isolated#10675

Merged
vstinner merged 2 commits intopython:masterfrom
vstinner:args_from_interpreter
Nov 23, 2018
Merged

bpo-34812: subprocess._args_from_interpreter_flags(): add isolated#10675
vstinner merged 2 commits intopython:masterfrom
vstinner:args_from_interpreter

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Nov 23, 2018

The "-I" command line option (enable isolated mode) is now also
copied by the multiprocessing and distutils modules when spawning
child processes. Previously, only -E and -s options (enabled by -I)
were copied.

subprocess._args_from_interpreter_flags() now copies the -I flag.

https://bugs.python.org/issue34812

The "-I" command line option (run Python in isolated mode) is now
also copied by the multiprocessing and distutils modules when
spawning child processes. Previously, only -E and -s options (enabled
by -I) were copied.

subprocess._args_from_interpreter_flags() now copies the -I flag.
@vstinner vstinner added the type-security A security issue label Nov 23, 2018
@vstinner vstinner merged commit 9de3632 into python:master Nov 23, 2018
@miss-islington
Copy link
Copy Markdown
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖

@vstinner vstinner deleted the args_from_interpreter branch November 23, 2018 16:54
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 23, 2018
…ythonGH-10675)

The "-I" command line option (run Python in isolated mode) is now
also copied by the multiprocessing and distutils modules when
spawning child processes. Previously, only -E and -s options (enabled
by -I) were copied.

subprocess._args_from_interpreter_flags() now copies the -I flag.
(cherry picked from commit 9de3632)

Co-authored-by: Victor Stinner <[email protected]>
@bedevere-bot
Copy link
Copy Markdown

GH-10684 is a backport of this pull request to the 3.7 branch.

@miss-islington
Copy link
Copy Markdown
Contributor

Sorry, @vstinner, I could not cleanly backport this to 3.6 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 9de363271519e0616f4a7b59427057c4810d3acc 3.6

@bedevere-bot
Copy link
Copy Markdown

GH-10688 is a backport of this pull request to the 3.6 branch.

miss-islington added a commit that referenced this pull request Nov 23, 2018
…H-10675)

The "-I" command line option (run Python in isolated mode) is now
also copied by the multiprocessing and distutils modules when
spawning child processes. Previously, only -E and -s options (enabled
by -I) were copied.

subprocess._args_from_interpreter_flags() now copies the -I flag.
(cherry picked from commit 9de3632)

Co-authored-by: Victor Stinner <[email protected]>
vstinner added a commit that referenced this pull request Nov 23, 2018
…H-10675) (GH-10688)

The "-I" command line option (run Python in isolated mode) and -X
options (like -X faulthandler) are now also copied by the
multiprocessing and distutils modules when spawning child processes.
Previously, only -E and -s options (enabled by -I) were copied.

subprocess._args_from_interpreter_flags() now copies the -I flag
and options from sys._xoptions like -X dev.

(cherry picked from commit 9de3632)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants