mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
devutils/update_lists: use fork multiprocessing only on posix
fixes breakage on windows introduced by #3866. fork is indeed available on all POSIX systems, but windows isn't one, so we use the default spawn method on all non-POSIX systems (nt/windows) instead.
This commit is contained in:
@@ -404,5 +404,6 @@ def main(args_list=None):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
multiprocessing.set_start_method('fork')
|
||||
if os.name == 'posix':
|
||||
multiprocessing.set_start_method('fork')
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user