Avoid creating world writable files

This commit is contained in:
Dougal Scott 2014-06-02 08:07:43 +10:00
parent ae14150cad
commit 1b047a7e7b

View File

@ -416,7 +416,7 @@ def daemonize(enable_stdio_inheritance=False):
if os.fork():
os._exit(0)
os.umask(0)
os.umask(0o22)
# In both the following any file descriptors above stdin
# stdout and stderr are left untouched. The inheritence