File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 18
18
import pybind11_tests
19
19
20
20
if os .name != "nt" :
21
- # https://github.com/pybind/pybind11/issues/4105#issuecomment-1301004592
21
+ # Full background: https://github.com/pybind/pybind11/issues/4105#issuecomment-1301004592
22
+ # In a nutshell: fork() after starting threads == flakiness in the form of deadlocks.
23
+ # It is actually a well-known pitfall, unfortunately without guard rails.
24
+ # "forkserver" is more performant than "spawn" (~9s vs ~13s for tests/test_gil_scoped.py,
25
+ # visit the issuecomment link above for details).
26
+ # Windows does not have fork() and the associated pitfall, therefore it is best left
27
+ # running with defaults.
22
28
multiprocessing .set_start_method ("forkserver" )
23
29
24
30
_long_marker = re .compile (r"([0-9])L" )
You can’t perform that action at this time.
0 commit comments