Issue #28779: multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.

This commit is contained in:
Antoine Pitrou 2016-12-10 17:16:17 +01:00
commit ebb39bcc04
5 changed files with 37 additions and 2 deletions

View file

@ -196,7 +196,7 @@ class BaseContext(object):
def get_start_method(self, allow_none=False):
return self._name
def set_start_method(self, method=None):
def set_start_method(self, method, force=False):
raise ValueError('cannot set start method of concrete context')
@property