diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2016-12-10 16:13:16 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2016-12-10 16:13:16 (GMT) |
commit | cd2a201e5bb33c9b44401a91e10189be87885efe (patch) | |
tree | 9dee87e322d960ada1c61a24aabe9408ea3e9db6 /Lib/multiprocessing/spawn.py | |
parent | 7a44783b425ed810cf38e48b43fb3800e2995fa1 (diff) | |
download | cpython-cd2a201e5bb33c9b44401a91e10189be87885efe.zip cpython-cd2a201e5bb33c9b44401a91e10189be87885efe.tar.gz cpython-cd2a201e5bb33c9b44401a91e10189be87885efe.tar.bz2 |
Issue #28779: multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.
Diffstat (limited to 'Lib/multiprocessing/spawn.py')
-rw-r--r-- | Lib/multiprocessing/spawn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/multiprocessing/spawn.py b/Lib/multiprocessing/spawn.py index 4d76951..392c1599 100644 --- a/Lib/multiprocessing/spawn.py +++ b/Lib/multiprocessing/spawn.py @@ -218,7 +218,7 @@ def prepare(data): process.ORIGINAL_DIR = data['orig_dir'] if 'start_method' in data: - set_start_method(data['start_method']) + set_start_method(data['start_method'], force=True) if 'init_main_from_name' in data: _fixup_main_from_name(data['init_main_from_name']) |