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()
if pid:
sys.exit()
else:
if config.get("server", "pid"):
elif config.get("server", "pid"):
open(config.get("server", "pid"), "w").write(str(pid))
sys.stdout = sys.stderr = open(os.devnull, "w")