From 50608b54ed98acb54fec5fe3323909ea684d3af9 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 15 Sep 2017 13:27:49 -0500 Subject: [PATCH] rc-cgroup.sh: fix signal names The "SIG" prefix on signal names passed to kill -s isn't portable. --- sh/rc-cgroup.sh.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sh/rc-cgroup.sh.in b/sh/rc-cgroup.sh.in index 4b713594..3c7558cd 100644 --- a/sh/rc-cgroup.sh.in +++ b/sh/rc-cgroup.sh.in @@ -204,13 +204,13 @@ cgroup_cleanup() local pids pids="$(cgroup_get_pids)" if [ -n "${pids}" ]; then - kill -s "${stopsig:-SIGTERM}" ${pids} 2> /dev/null - kill -s SIGCONT ${pids} 2> /dev/null + kill -s "${stopsig:-TERM}" ${pids} 2> /dev/null + kill -s CONT ${pids} 2> /dev/null yesno "${rc_send_sighup:-no}" && - kill -s SIGHUP ${pids} 2> /dev/null + kill -s HUP ${pids} 2> /dev/null sleep "${rc_timeout_stopsec:-90}" yesno "${rc_send_sigkill:-yes}" && - kill -s SIGKILL ${pids} 2> /dev/null + kill -s KILL ${pids} 2> /dev/null fi eend 0 }