python3: os.umask(002) to os.umask(0o002)
os.umask(0o002) is the python 2/3 way
This commit is contained in:
parent
d767d19ffb
commit
bf320a8c43
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ class Daemon:
|
|||
# decouple from parent environment
|
||||
os.chdir('/')
|
||||
os.setsid()
|
||||
os.umask(002)
|
||||
os.umask(0o002)
|
||||
|
||||
# do second fork
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue