mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
else if → elif
This commit is contained in:
parent
0529d839c2
commit
cdad148bd0
1 changed files with 2 additions and 3 deletions
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue