else if → elif
This commit is contained in:
parent
0529d839c2
commit
cdad148bd0
@ -104,9 +104,8 @@ 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")
|
||||||
|
|
||||||
# Register exit function
|
# Register exit function
|
||||||
|
Loading…
Reference in New Issue
Block a user