Skip to content

Commit

Permalink
Explicitly spawn processes using 'fork' method
Browse files Browse the repository at this point in the history
This is unsafe, but we strongly depend on it
  • Loading branch information
progval committed Oct 19, 2024
1 parent eabd610 commit 399dffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, *args, **kwargs):
log.debug('Spawning thread %q.', self.getName())

processesSpawned = 1 # Starts at one for the initial process.
class SupyProcess(multiprocessing.Process):
class SupyProcess(multiprocessing.get_context('fork').Process):
def __init__(self, *args, **kwargs):
global processesSpawned
processesSpawned += 1
Expand Down

0 comments on commit 399dffd

Please sign in to comment.