From 274b72f982a5c80b695ffa83454a8ee7fa44f7d4 Mon Sep 17 00:00:00 2001 From: Travis Glenn Hansen Date: Sat, 11 Dec 2021 17:25:32 -0700 Subject: [PATCH] process cleanup attempt Signed-off-by: Travis Glenn Hansen --- ci/bin/run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/bin/run.sh b/ci/bin/run.sh index 26ad7fb..ff60216 100755 --- a/ci/bin/run.sh +++ b/ci/bin/run.sh @@ -5,7 +5,8 @@ set -x _term() { #[[ -n "${SUDO_PID}" ]] && sudo kill -15 "${SUDO_PID}" - [[ -n "${SUDO_PID}" ]] && kill -15 "${SUDO_PID}" + #[[ -n "${SUDO_PID}" ]] && kill -15 "${SUDO_PID}" + [[ -n "${SUDO_PID}" ]] && sudo kill -15 $(pgrep -P "${SUDO_PID}") } trap _term EXIT