Skip to content

Commit 399dffd

Browse files
committed
Explicitly spawn processes using 'fork' method
This is unsafe, but we strongly depend on it
1 parent eabd610 commit 399dffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/world.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self, *args, **kwargs):
6565
log.debug('Spawning thread %q.', self.getName())
6666

6767
processesSpawned = 1 # Starts at one for the initial process.
68-
class SupyProcess(multiprocessing.Process):
68+
class SupyProcess(multiprocessing.get_context('fork').Process):
6969
def __init__(self, *args, **kwargs):
7070
global processesSpawned
7171
processesSpawned += 1

0 commit comments

Comments
 (0)