python3: os.umask(002) to os.umask(0o002)

os.umask(0o002) is the python 2/3 way
This commit is contained in:
MirceaDan 2016-07-15 01:18:11 -07:00
parent d767d19ffb
commit bf320a8c43

View file

@ -44,7 +44,7 @@ class Daemon:
# decouple from parent environment
os.chdir('/')
os.setsid()
os.umask(002)
os.umask(0o002)
# do second fork
try: