Commit d59e99c1 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Keep parent's umask

parent ef38a3ce
......@@ -726,10 +726,6 @@ def close_fds():
# Adapted from https://code.activestate.com/recipes/278731/
def daemonize(command):
# Default daemon parameters.
# File mode creation mask of the daemon.
UMASK = 0
# Default working directory for the daemon.
WORKDIR = "/"
......@@ -755,11 +751,6 @@ def daemonize(command):
# directory.
os.chdir(WORKDIR)
# We probably don't want the file mode creation mask inherited
# from the parent, so we give the child complete control over
# permissions.
os.umask(0)
# Close all open file descriptors. This prevents the child from
# keeping open any file descriptors inherited from the parent.
# There is a variety of methods to accomplish this task.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment