this works always

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2018-12-19 19:07:39 +03:00
parent d07fd3362b
commit c6bba36f94
1 changed files with 1 additions and 3 deletions

4
ssm
View File

@ -151,9 +151,7 @@ spawn() {
cgroup_get_procs() {
if service_cgroup_path is dir; then
while read -r line; do
service_cgroup_procs += "$line"
done < "$cgroup_home/$service_cgroup_name/cgroup.procs"
mapfile -t service_cgroup_procs < "$cgroup_home/$service_cgroup_name/cgroup.procs"
fi
}; readonly -f cgroup_get_procs