Issue #12098: multiprocessing on Windows now starts child processes

using the same sys.flags as the current process.
Backport from default branch.
This commit is contained in:
Kristján Valur Jónsson 2013-03-19 15:07:35 -07:00
parent ac0866f2ab
commit 8927e8f421
6 changed files with 72 additions and 18 deletions

View file

@ -361,7 +361,8 @@ else:
return [sys.executable, '--multiprocessing-fork']
else:
prog = 'from multiprocessing.forking import main; main()'
return [_python_exe, '-c', prog, '--multiprocessing-fork']
opts = util._args_from_interpreter_flags()
return [_python_exe] + opts + ['-c', prog, '--multiprocessing-fork']
def main():