Merge "Fix killscript regex match for libpod-conmon-*" into stable/wallaby

This commit is contained in:
Zuul 2022-01-11 04:21:04 +00:00 committed by Gerrit Code Review
commit 5c5ca4a1fb
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ signal_container() {
{% raw -%}
if [ -f /proc/$PID/cgroup ]; then
# Get container ID based on process cgroups
CT_ID=$(awk 'BEGIN {FS="[-.]"} /0::|:pids:/{print $3; exit}' /proc/$PID/cgroup)
CT_ID=$(awk 'BEGIN {FS=".scope|-"} /0::|:pids:/ {if ($(NF-1)) print $(NF-1);exit}' /proc/$PID/cgroup)
CT_NAME=$($CLI inspect -f '{{.Name}}' $CT_ID)
case $SIG in