diff --git a/gunicorn/util.py b/gunicorn/util.py index 42f8b8a4..22a3f4e8 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -414,7 +414,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