Explorar el Código

set umask to the defautl value instead of 0

Helmut Pozimski hace 8 años
padre
commit
2a971b6ed8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)