From 2f765747b823383a832e57e383909df513339cc9 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 7 Nov 2023 10:42:53 +1000 Subject: [PATCH] Add freeze_support() for multiprocessing --- gns3server/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gns3server/main.py b/gns3server/main.py index 10ed2bf9..2c585663 100644 --- a/gns3server/main.py +++ b/gns3server/main.py @@ -32,6 +32,8 @@ import os import sys import types +from multiprocessing import freeze_support + # To avoid strange bug later we switch the event loop before any other operation if sys.platform.startswith("win"): import asyncio @@ -79,6 +81,8 @@ def main(): if not sys.platform.startswith("win"): if "--daemon" in sys.argv: daemonize() + else: + freeze_support() from gns3server.run import run run()