From 4651b8c7e9e2ef9c1ea1fb8d174d1ca4693627af Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 15 Sep 2017 13:42:50 -0500 Subject: 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. --- sh/rc-cgroup.sh.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sh/rc-cgroup.sh.in') diff --git a/sh/rc-cgroup.sh.in b/sh/rc-cgroup.sh.in index 3c7558cd..2a54ee4a 100644 --- a/sh/rc-cgroup.sh.in +++ b/sh/rc-cgroup.sh.in @@ -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 } -- cgit v1.2.3