Skip to content

Commit

Permalink
Don't trap EXIT
Browse files Browse the repository at this point in the history
  • Loading branch information
cwgoes committed Oct 5, 2018
1 parent 034163c commit 1046831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/multisim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ blocks=$1
echo "Running multi-seed simulation with seeds ${seeds[@]}"
echo "Running $blocks blocks per seed"
echo "Edit scripts/multisim.sh to add new seeds. Keeping parameters in the file makes failures easy to reproduce."
echo "This script will kill all sub-simulations on SIGINT/SIGTERM/EXIT (i.e. Ctrl-C)."
echo "This script will kill all sub-simulations on SIGINT/SIGTERM (i.e. Ctrl-C)."

trap 'kill $(jobs -pr)' SIGINT SIGTERM EXIT
trap 'kill $(jobs -pr)' SIGINT SIGTERM

tmpdir=$(mktemp -d)
echo "Using temporary log directory: $tmpdir"
Expand Down

0 comments on commit 1046831

Please sign in to comment.