diff --git a/gunicorn/util.py b/gunicorn/util.py index 9f6b79c9..a850016b 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -416,7 +416,7 @@ def daemonize(enable_stdio_inheritance=False): if os.fork(): os._exit(0) - os.umask(0) + os.umask(0o22) # In both the following any file descriptors above stdin # stdout and stderr are left untouched. The inheritence