rc-cgroup.sh: cgroup_cleanup fix error handling

cgroup_cleanup should warn if it is unable to clean up all processes in
the control group, but it will always return success.
This commit is contained in:
William Hubbs 2017-09-15 13:42:50 -05:00
parent 50608b54ed
commit 4651b8c7e9

View File

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