=== removed file 'zsh-functions/zsv_apply_flags' --- zsh-functions/zsv_apply_flags 2014-02-10 08:55:11 +0000 +++ zsh-functions/zsv_apply_flags 1970-01-01 00:00:00 +0000 @@ -1,7 +0,0 @@ -for c in ${(s::)zsv_flags}; do - case $c in - ('&') exec 2>&1;; - ('@') exec >/dev/null;; - esac -done -# vim: ft=zsh noet ts=4 sts=4 sw=4 === modified file 'zsh-functions/zsv_generic' --- zsh-functions/zsv_generic 2014-02-10 08:55:11 +0000 +++ zsh-functions/zsv_generic 2014-02-09 23:03:56 +0000 @@ -1,5 +1,19 @@ -zsv_set_cgroup -zsv_apply_flags +if ! grep -q "^[^ ]* ${zsv_cgroup:h} " /proc/mounts; then + [[ -d $zsv_cgroup:h ]] && rm -rf $zsv_cgroup:h + mkdir -p $zsv_cgroup:h + mount -t cgroup -o cpuacct zsv $zsv_cgroup:h +fi + +if grep -q "^[^ ]* ${zsv_cgroup:h} " /proc/mounts; then + mkdir -p $zsv_cgroup && echo $$ >>$zsv_cgroup/tasks +fi + +for c in ${(s::)zsv_flags}; do + case $c in + ('&') exec 2>&1;; + ('@') exec >/dev/null;; + esac +done exec "${run[@]}" # vim: ft=zsh noet ts=4 sts=4 sw=4 === removed file 'zsh-functions/zsv_multilog' --- zsh-functions/zsv_multilog 2014-02-10 08:55:11 +0000 +++ zsh-functions/zsv_multilog 1970-01-01 00:00:00 +0000 @@ -1,6 +0,0 @@ -: ${multilog_base:=/var/log} -: ${multilog_dir:=$multilog_base/$zsv_name} -mkdir -p $multilog_dir -(($+multilog_args)) || multilog_args=( t s2500000 n10 ) -exec multilog $multilog_args $multilog_dir -# vim: ft=zsh noet ts=4 sts=4 sw=4 === removed file 'zsh-functions/zsv_set_cgroup' --- zsh-functions/zsv_set_cgroup 2014-02-10 08:55:11 +0000 +++ zsh-functions/zsv_set_cgroup 1970-01-01 00:00:00 +0000 @@ -1,10 +0,0 @@ -if ! grep -q "^[^ ]* ${zsv_cgroup:h} " /proc/mounts; then - [[ -d $zsv_cgroup:h ]] && rm -rf $zsv_cgroup:h - mkdir -p $zsv_cgroup:h - mount -t cgroup -o cpuacct zsv $zsv_cgroup:h -fi - -if grep -q "^[^ ]* ${zsv_cgroup:h} " /proc/mounts; then - mkdir -p $zsv_cgroup && echo $$ >>$zsv_cgroup/tasks -fi -# vim: ft=zsh noet ts=4 sts=4 sw=4