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:
parent
50608b54ed
commit
4651b8c7e9
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user