git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d2703f
)
use system-wide umask value otherwise all directories under /dev/cgroup and /vservers...
author
S.Çağlar Onur
<caglar@cs.princeton.edu>
Wed, 14 Jul 2010 17:15:39 +0000
(13:15 -0400)
committer
S.Çağlar Onur
<caglar@cs.princeton.edu>
Wed, 14 Jul 2010 17:15:39 +0000
(13:15 -0400)
tools.py
patch
|
blob
|
history
diff --git
a/tools.py
b/tools.py
index
22895c4
..
99e6dac
100644
(file)
--- a/
tools.py
+++ b/
tools.py
@@
-60,7
+60,7
@@
def daemon():
os.setsid()
if os.fork() != 0: os._exit(0)
os.chdir('/')
- os.umask(0)
+ os.umask(0
022
)
devnull = os.open(os.devnull, os.O_RDWR)
os.dup2(devnull, 0)
# xxx fixme - this is just to make sure that nothing gets stupidly lost - should use devnull