Skip to content

Commit

Permalink
Better exit
Browse files Browse the repository at this point in the history
  • Loading branch information
dimalit committed Sep 15, 2023
1 parent 1ad7e89 commit 03171d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration_tests/skaled/stability/load_many_transactions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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[@]}
Expand All @@ -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[@]}
Expand Down

0 comments on commit 03171d8

Please sign in to comment.