mirror of
https://github.com/OpenRC/openrc.git
synced 2024-11-23 18:03:51 +08:00
rc-cgroup.sh: fix signal names
The "SIG" prefix on signal names passed to kill -s isn't portable.
This commit is contained in:
parent
b0a077a35f
commit
50608b54ed
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user