Skip to content

Commit

Permalink
Better kill
Browse files Browse the repository at this point in the history
  • Loading branch information
dimalit committed Sep 15, 2023
1 parent 03171d8 commit aaa3668
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integration_tests/skaled/stability/load_requests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ do
I=$((I+1))
done

trap 'kill -INT ${PIDS[*]}' INT EXIT
trap 'kill ${PIDS[*]}' INT EXIT

echo "Waiting for request bombers to finish"
wait ${PIDS[@]}
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/skaled/stability/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ done
bash ./load_many_transactions.sh ${URLS[*]} 2>&1 1>load.log&
load_pid=$!
kill_load() {
kill -INT $load_pid
kill $load_pid
}
trap kill_load INT TERM EXIT

bash ./load_requests.sh ${URLS[5]} ${URLS[6]} 2>&1 1>requests.log&
requests_pid=$!
kill_requests() {
kill -INT $requests_pid
kill $requests_pid
}
trap kill_requests INT TERM EXIT

Expand Down

0 comments on commit aaa3668

Please sign in to comment.