Commit a285564
committed
deviceserver: force multiprocessing spawn start method in MacOSX (issue #106)
MacOSX High Sierra changed behaviour of fork in Objective-C code.
+initialize methods are not supposed to be called between fork() and
exec(). However, Python's multiprocessing fork start method uses
fork() without exec(). Python has fixed this in version 3.8 by
changing the default start method in MacOSX to spawn. This commit
does the same. The workaround should be removed once we are
dependent in Python 3.8 or later so that a user can easily change
it to something else.1 parent 6adf04d commit a285564
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
0 commit comments