else if → elif

This commit is contained in:
Guillaume Ayoub 2014-07-28 10:24:43 +02:00
parent 0529d839c2
commit cdad148bd0

View File

@ -104,8 +104,7 @@ def run():
pid = os.fork() pid = os.fork()
if pid: if pid:
sys.exit() sys.exit()
else: elif config.get("server", "pid"):
if config.get("server", "pid"):
open(config.get("server", "pid"), "w").write(str(pid)) open(config.get("server", "pid"), "w").write(str(pid))
sys.stdout = sys.stderr = open(os.devnull, "w") sys.stdout = sys.stderr = open(os.devnull, "w")