Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2020-09-08 03:23:29 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2020-09-08 03:23:29 +0300
commitc507644c2c56e1fe8476b1ce48aa1642e4a80bc8 (patch)
tree5dbf00876a4b39d11d878d7df69a53ae3386973f
parentcff06d3dc719f5277ca9229d42153e5073a03f7e (diff)
Set the umask for the calm daemon
It seems that daemon.DaemonContext() defaults to umask=0o000, which is not what we want.
-rwxr-xr-xcalm/calm.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/calm/calm.py b/calm/calm.py
index adfface..889204b 100755
--- a/calm/calm.py
+++ b/calm/calm.py
@@ -503,6 +503,7 @@ def do_daemon(args, state):
context = daemon.DaemonContext(
stdout=sys.stdout,
stderr=sys.stderr,
+ umask=0o002,
pidfile=lockfile.pidlockfile.PIDLockFile(args.daemon))
running = True