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

os.umask(0o002) is the python 2/3 way
This commit is contained in:
MirceaDan committed 2016-07-15 01:18:11 -07:00
1 parent d767d19ffb
commit bf320a8c43
1 file changed
+1 -1
+1 -1
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: