sh/rc-cgroup.sh: fix cgroup_cleanup

X-Gentoo-Bug: 804193
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=804193
This commit is contained in:
William Hubbs 2021-08-12 14:21:58 -05:00
parent 1d282ddc80
commit 9c7bedca9e

View File

@ -219,7 +219,7 @@ cgroup_cleanup()
kill -s HUP ${cgroup_pids} 2> /dev/null
kill -s "${stopsig:-TERM}" ${cgroup_pids} 2> /dev/null
cgroup_get_pids
while [ -n "$(cgroup_pids)" ] &&
while [ -n "${cgroup_pids}" ] &&
[ "${loops}" -lt "${rc_timeout_stopsec:-90}" ]; do
loops=$((loops+1))
sleep 1