Merge pull request #770 from dwagon/731-umask

731 - Avoid creating world writable files
This commit is contained in:
Randall Leeds 2014-11-17 19:03:01 -08:00
commit fcba1a6c1c

View File

@ -414,7 +414,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