From 03171d8e194566fe494b4573804b58333cb4bfa0 Mon Sep 17 00:00:00 2001 From: Dima Litvinov Date: Fri, 15 Sep 2023 14:06:49 +0100 Subject: [PATCH] Better exit --- .../skaled/stability/load_many_transactions.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integration_tests/skaled/stability/load_many_transactions.sh b/integration_tests/skaled/stability/load_many_transactions.sh index fe54b49..dc1f08c 100644 --- a/integration_tests/skaled/stability/load_many_transactions.sh +++ b/integration_tests/skaled/stability/load_many_transactions.sh @@ -41,9 +41,9 @@ do PIDS[$I]=$! I=$((I+1)) done -trap 'kill -INT ${PIDS[*]}' INT TERM EXIT +trap 'kill ${PIDS[*]}' INT TERM EXIT sleep 86400 -kill -INT ${PIDS[*]} +kill ${PIDS[*]} unset PIDS cd third_party/rpc_bomber @@ -57,7 +57,7 @@ do I=$((I+1)) done -trap 'kill -INT ${PIDS[*]}' INT TERM EXIT +trap 'kill ${PIDS[*]}' INT TERM EXIT echo "Waiting for bombers to finish" wait ${PIDS[@]} @@ -72,7 +72,7 @@ do I=$((I+1)) done -trap 'kill -INT ${PIDS[*]}' INT TERM EXIT +trap 'kill ${PIDS[*]}' INT TERM EXIT echo "Waiting for bombers to finish 2" wait ${PIDS[@]}