this works always
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
d07fd3362b
commit
c6bba36f94
4
ssm
4
ssm
|
@ -151,9 +151,7 @@ spawn() {
|
||||||
|
|
||||||
cgroup_get_procs() {
|
cgroup_get_procs() {
|
||||||
if service_cgroup_path is dir; then
|
if service_cgroup_path is dir; then
|
||||||
while read -r line; do
|
mapfile -t service_cgroup_procs < "$cgroup_home/$service_cgroup_name/cgroup.procs"
|
||||||
service_cgroup_procs += "$line"
|
|
||||||
done < "$cgroup_home/$service_cgroup_name/cgroup.procs"
|
|
||||||
fi
|
fi
|
||||||
}; readonly -f cgroup_get_procs
|
}; readonly -f cgroup_get_procs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user