mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-10 18:40:53 +00:00
Merge pull request #540 from twoodcock/master
remove umask(0) in daemon mode
This commit is contained in:
commit
34a82c9b69
1 changed files with 0 additions and 1 deletions
|
@ -131,7 +131,6 @@ def serve(configuration, logger):
|
||||||
with os.fdopen(pid_fd, "w") as pid_file:
|
with os.fdopen(pid_fd, "w") as pid_file:
|
||||||
pid_file.write(str(os.getpid()))
|
pid_file.write(str(os.getpid()))
|
||||||
# Decouple environment
|
# Decouple environment
|
||||||
os.umask(0)
|
|
||||||
os.chdir("/")
|
os.chdir("/")
|
||||||
os.setsid()
|
os.setsid()
|
||||||
with open(os.devnull, "r") as null_in:
|
with open(os.devnull, "r") as null_in:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue