git://git.onelab.eu
/
util-vserver-pl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c3c5ad0
)
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:16:24 +0000
(13:16 -0400)
committer
S.Çağlar Onur
<caglar@cs.princeton.edu>
Wed, 14 Jul 2010 17:16:24 +0000
(13:16 -0400)
python/vserver.py
patch
|
blob
|
history
diff --git
a/python/vserver.py
b/python/vserver.py
index
96ebcdd
..
0fe7dd6
100644
(file)
--- a/
python/vserver.py
+++ b/
python/vserver.py
@@
-390,7
+390,7
@@
class VServer:
os._exit(0) # Exit parent (the first child) of the second child.
# the grandson is the working one
os.chdir('/')
- os.umask(0)
+ os.umask(0
022
)
try:
# start the vserver
subprocess.call(["/usr/sbin/vserver",self.name,"start"])