else if → elif
This commit is contained in:
parent
0529d839c2
commit
cdad148bd0
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user