diff --git a/console/novncd b/console/novncd index 08cb51d..18de93b 100755 --- a/console/novncd +++ b/console/novncd @@ -5,6 +5,9 @@ import sys import logging import django +import signal +signal.signal(signal.SIGCHLD, signal.SIG_IGN) + DIR_PATH = os.path.dirname(os.path.abspath(__file__)) ROOT_PATH = os.path.abspath(os.path.join(DIR_PATH, "..", "")) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webvirtcloud.settings") diff --git a/console/socketiod b/console/socketiod index dbd38bc..a53a6f1 100755 --- a/console/socketiod +++ b/console/socketiod @@ -4,6 +4,9 @@ import sys import logging import django +import signal +signal.signal(signal.SIGCHLD, signal.SIG_IGN) + DIR_PATH = os.path.dirname(os.path.abspath(__file__)) ROOT_PATH = os.path.abspath(os.path.join(DIR_PATH, "..", "")) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webvirtcloud.settings") diff --git a/webvirtcloud/wsgi.py b/webvirtcloud/wsgi.py index 00c2ae3..e1b8007 100644 --- a/webvirtcloud/wsgi.py +++ b/webvirtcloud/wsgi.py @@ -7,6 +7,9 @@ For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ +import signal +signal.signal(signal.SIGCHLD, signal.SIG_IGN) + import os from django.core.wsgi import get_wsgi_application