projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
01a0c07
)
Create subsys array correctly
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Fri, 17 Feb 2012 11:22:08 +0000 (12:22 +0100)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Fri, 17 Feb 2012 11:22:08 +0000 (12:22 +0100)
scripts/vserver.functions
patch
|
blob
|
history
diff --git
a/scripts/vserver.functions
b/scripts/vserver.functions
index
f528d30
..
e00ce74
100644
(file)
--- a/
scripts/vserver.functions
+++ b/
scripts/vserver.functions
@@
-1478,7
+1478,7
@@
function _generateCgroupOptions
if test -n "$file"; then
_readFileToArray CGROUP_SUBSYS "$file"
else
- CGROUP_SUBSYS=( $($_AWK '/^#/ { next; } $1 == "ns" { next; } $4 != "0" { printf "%s%s", s, $1; s=","; }' /proc/cgroups) )
+ CGROUP_SUBSYS=( $($_AWK '/^#/ { next; } $1 == "ns" { next; } $4 != "0" { print $1; }' /proc/cgroups) )
fi
findFile file "$__CONFDIR/.defaults/cgroup/mnt" ""
if test -n "$file"; then