Skip to content

Commit

Permalink
Exit when any node exited
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Jun 4, 2024
1 parent 69349bf commit 6c07804
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/nodes/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@ else
done
fi

wait
# -n means we will exit when any of the background processes exits.
# https://www.gnu.org/software/bash/manual/bash.html#index-wait
wait -n

0 comments on commit 6c07804

Please sign in to comment.