umask everywhere

This commit is contained in:
benoitc 2010-02-21 12:22:12 +01:00
parent 54c8444285
commit c40697879c
2 changed files with 2 additions and 0 deletions

View File

@ -171,6 +171,7 @@ def paste_server(app, global_conf=None, host="127.0.0.1", port=None,
if conf["daemon"] :
daemonize(conf["umask"])
else:
os.umask(int(conf['umask'], 0))
os.setpgrp()
set_owner_process(conf["user"], conf["group"])
configure_logging(conf)

View File

@ -69,6 +69,7 @@ class Command(BaseCommand):
if conf['daemon']:
daemonize(conf['umask'])
else:
os.umask(int(conf['umask'], 0))
os.setpgrp()
set_owner_process(conf["user"], conf["group"])
configure_logging(conf)