summaryrefslogtreecommitdiff
path: root/daemon.py
diff options
context:
space:
mode:
Diffstat (limited to 'daemon.py')
-rw-r--r--daemon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.py b/daemon.py
index 2f2caea..40319a4 100644
--- a/daemon.py
+++ b/daemon.py
@@ -51,7 +51,7 @@ def setugid(user):
os.environ['HOME'] = passwd.pw_dir
-def daemonize(pidfile=None, uid=None, umask=077):
+def daemonize(pidfile=None, uid=None, umask=0o77):
"""daemonize a Unix process. Set paranoid umask by default.
Return 1 in the original process, 2 in the first fork, and None for the