cgroup_cleanup: try to remove the cgroup version 2 cgroup

If we were able to kill all the processes in the cgroup, it should be
removed.
This commit is contained in:
William Hubbs 2017-09-15 14:22:34 -05:00
parent 4651b8c7e9
commit 25b45a5a23

View File

@ -212,6 +212,7 @@ cgroup_cleanup()
yesno "${rc_send_sigkill:-yes}" && yesno "${rc_send_sigkill:-yes}" &&
kill -s KILL ${pids} 2> /dev/null kill -s KILL ${pids} 2> /dev/null
fi fi
cgroup2_remove
[ -z "$(cgroup_get_pids)" ] [ -z "$(cgroup_get_pids)" ]
eend $? "Unable to stop all processes" eend $? "Unable to stop all processes"
return 0 return 0