Add multiprocessing.set_start_method()

pull/2353/head
grossmj 6 months ago
parent cc4783ab98
commit 8eb5f10971
No known key found for this signature in database
GPG Key ID: 0A2D76AC45EA25CD

@ -31,8 +31,7 @@ import gns3server.utils.get_resource
import os
import sys
import types
from multiprocessing import freeze_support
import multiprocessing
# To avoid strange bug later we switch the event loop before any other operation
if sys.platform.startswith("win"):
@ -79,7 +78,8 @@ def main():
"""
if hasattr(sys, "frozen"):
freeze_support()
multiprocessing.freeze_support()
multiprocessing.set_start_method("spawn")
if not sys.platform.startswith("win"):
if "--daemon" in sys.argv:

Loading…
Cancel
Save