Wrap all of x.py in if __name__ == '__main__': to avoid problems with multiprocessing#111049
Wrap all of x.py in if __name__ == '__main__': to avoid problems with multiprocessing#111049Zalathar wants to merge 1 commit into
x.py in if __name__ == '__main__': to avoid problems with multiprocessing#111049Conversation
…with `multiprocessing`
|
(rustbot has picked a reviewer for you, use r? to override) |
|
The easier fix would be to just revert #110427, but filing this PR was simple enough that I figured I'd give the option of doing this instead. |
|
If you could revert the PR in addition of your changes, it would be great. |
|
Why? This fixes the bug, doesn't it? I don't think we gain anything by reverting |
|
I (at least) would like to EDIT: Per the multiprocessing documentation, the function to use would be |
|
I'm not interested in fighting over this. |
#110427 caused
bootstrap.pyto start using themultiprocessingmodule, which unfortunately broke the bootstrap script on some systems.It seems that in some situations, Python's
multiprocessingmodule needs to be able to safely import a program's entry-point module without executing the program.Fixes #111046.