Merge pull request #540 from twoodcock/master

remove umask(0) in daemon mode
This commit is contained in:
Guillaume Ayoub 2017-02-26 14:35:19 +01:00 committed by GitHub
commit 34a82c9b69

View File

@ -131,7 +131,6 @@ def serve(configuration, logger):
with os.fdopen(pid_fd, "w") as pid_file:
pid_file.write(str(os.getpid()))
# Decouple environment
os.umask(0)
os.chdir("/")
os.setsid()
with open(os.devnull, "r") as null_in: