Browse Source

set umask to the defautl value instead of 0

Helmut Pozimski 8 years ago
parent
commit
2a971b6ed8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      stddlib/daemon.py

+ 1 - 1
stddlib/daemon.py

@@ -44,7 +44,7 @@ class Daemon(object):
         # Change cwd to / to avoid interfering with other mounted file systems
         os.chdir("/")
         # Reset the umask
-        os.umask(0)
+        os.umask(0o22)
 
         # Close possibly open file descriptors
         os.close(0)