From d697a5484664ec9f110a210a1212617e6a939fcb Mon Sep 17 00:00:00 2001 From: Jakub Date: Thu, 22 Sep 2022 13:55:50 +0200 Subject: [PATCH] local_launch_testnet: use -SIGKILL instead of -9 (#4159) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Might help with this error: ``` pkill: illegal option -- 9 usage: pkill [-signal] [-ILfilnovx] [-F pidfile] [-G gid] [-P ppid] [-U uid] [-g pgrp] [-t tty] [-u euid] pattern ... ``` Signed-off-by: Jakub Sokołowski Signed-off-by: Jakub Sokołowski --- scripts/launch_local_testnet.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/launch_local_testnet.sh b/scripts/launch_local_testnet.sh index f78ced3d6..3a696ebb5 100755 --- a/scripts/launch_local_testnet.sh +++ b/scripts/launch_local_testnet.sh @@ -390,7 +390,7 @@ kill_by_port() { echo -n "Found old process listening on port ${PORT}, with PID ${PID}. " if [[ "${KILL_OLD_PROCESSES}" == "1" ]]; then echo "Killing it." - kill -9 "${PID}" || true + kill -SIGKILL "${PID}" || true else echo "Aborting." exit 1 @@ -645,7 +645,7 @@ cleanup() { for proc in "${PROCS_TO_KILL[@]}" do - pkill -f -9 -P $$ "${proc}" || true + pkill -SIGKILL -f -P $$ "${proc}" || true done # Delete all binaries we just built, because these are unusable outside this