mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-03 22:01:39 +00:00
[no ci] always use spawn instead of forkserver
This commit is contained in:
@@ -36,10 +36,13 @@ def main():
|
||||
if __name__ == '__main__':
|
||||
if getattr(sys, 'frozen', False): # we're frozen:
|
||||
multiprocessing.freeze_support()
|
||||
if platform.system() == 'Linux':
|
||||
#if platform.system() == 'Linux':
|
||||
# set explictly since it's not default in Python < 3.14, forkserver should
|
||||
# be safer than fork and less likely to see bulk command hangs.
|
||||
multiprocessing.set_start_method('forkserver')
|
||||
else:
|
||||
multiprocessing.set_start_method('spawn')
|
||||
#multiprocessing.set_start_method('forkserver')
|
||||
#else:
|
||||
|
||||
# Python 3.14.4 and PyInstaller 6.19.0 don't play nice with forkserver
|
||||
# on Linux. For the time being use spawn everywhere.
|
||||
multiprocessing.set_start_method('spawn')
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user