local_launch_testnet: use -SIGKILL instead of -9 (#4159)

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 <jakub@status.im>

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-09-22 13:55:50 +02:00 committed by GitHub
parent c146ea823c
commit d697a54846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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