=== modified file 'zsh-functions/zsv_set_cgroup' --- zsh-functions/zsv_set_cgroup 2014-03-01 11:09:58 +0000 +++ zsh-functions/zsv_set_cgroup 2014-03-01 10:52:19 +0000 @@ -12,7 +12,10 @@ local cgroup rest while read cgroup rest; do if [[ -d /sys/fs/cgroup/$cgroup ]]; then - if [[ $cgroup != cpuset ]]; then + if [[ $cgroup == cpuset ]]; then + mkdir -p /sys/fs/cgroup/$cgroup/zsv.$zsv_name && \ + echo $$ >>/sys/fs/cgroup/$cgroup/zsv.$zsv_name/tasks + else mkdir -p /sys/fs/cgroup/$cgroup/zsv/$zsv_name && \ echo $$ >>/sys/fs/cgroup/$cgroup/zsv/$zsv_name/tasks fi