We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51fd290 commit 4d4fa40Copy full SHA for 4d4fa40
mutmut/__main__.py
@@ -4,7 +4,7 @@
4
import inspect
5
import itertools
6
import json
7
-from multiprocessing import Pool
+from multiprocessing import Pool, set_start_method
8
import os
9
import resource
10
import shutil
@@ -876,6 +876,9 @@ def inner_timout_checker():
876
@click.option('--max-children', type=int)
877
@click.argument('mutant_names', required=False, nargs=-1)
878
def run(mutant_names, *, max_children):
879
+ # used to copy the global mutmut.config to subprocesses
880
+ set_start_method('fork')
881
+
882
assert isinstance(mutant_names, (tuple, list)), mutant_names
883
_run(mutant_names, max_children)
884
0 commit comments