launch_local_testnet: show processes killed by pkill

I want to verify that processes being killed are not from other parallel jobs.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-07-25 13:18:17 +02:00
parent b7ed0aa235
commit 3f30eb51dd
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
1 changed files with 2 additions and 2 deletions

View File

@ -581,14 +581,14 @@ cleanup() {
for proc in "${PROCS_TO_KILL[@]}"
do
pkill -f -P $$ "${proc}" &>/dev/null || true
pkill -f -P $$ "${proc}" || true
done
sleep 2
for proc in "${PROCS_TO_KILL[@]}"
do
pkill -f -9 -P $$ "${proc}" &>/dev/null || true
pkill -f -9 -P $$ "${proc}" || true
done
# Delete all binaries we just built, because these are unusable outside this