Add freeze_support() for multiprocessing

This commit is contained in:
grossmj 2023-11-07 10:42:53 +10:00
parent 4fe57b6a15
commit 2f765747b8
No known key found for this signature in database
GPG Key ID: 0A2D76AC45EA25CD

View File

@ -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()