From 95534f0f4adce83d187726695f43802a3a61abf6 Mon Sep 17 00:00:00 2001 From: Krateng Date: Fri, 10 Jan 2020 04:02:43 +0100 Subject: [PATCH] Removed logfile output for subprocess calling to avoid zombification --- maloja/controller.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/maloja/controller.py b/maloja/controller.py index af49ea0..e07a9fd 100755 --- a/maloja/controller.py +++ b/maloja/controller.py @@ -104,9 +104,8 @@ def getInstanceSupervisor(): def start(): setup() try: - with open(datadir("logs/stderr.log"),"w") as logf: - p = subprocess.Popen(["python3","-m","maloja.server"],stdout=subprocess.DEVNULL,stderr=logf) - sp = subprocess.Popen(["python3","-m","maloja.supervisor"],stdout=subprocess.DEVNULL,stderr=logf) + p = subprocess.Popen(["python3","-m","maloja.server"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL) + sp = subprocess.Popen(["python3","-m","maloja.supervisor"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL) print(col["green"]("Maloja started!") + " PID: " + str(p.pid)) from doreah import settings