1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-10-31 19:44:16 +00:00

Merge pull request #562 from D-Jy-lab/master

fix zombie processes
This commit is contained in:
catborise 2023-01-23 08:20:20 +03:00 committed by GitHub
commit 31b029847f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View file

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

View file

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

View file

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