From 8eb5f1097160d2d67e0d2059205a8b97f919a196 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 7 Nov 2023 13:33:43 +1000 Subject: [PATCH] Add multiprocessing.set_start_method() --- gns3server/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gns3server/main.py b/gns3server/main.py index e004f52f..cc075f3a 100644 --- a/gns3server/main.py +++ b/gns3server/main.py @@ -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: