Don't trap EXIT
This commit is contained in:
parent
034163c021
commit
1046831296
|
@ -6,9 +6,9 @@ blocks=$1
|
||||||
echo "Running multi-seed simulation with seeds ${seeds[@]}"
|
echo "Running multi-seed simulation with seeds ${seeds[@]}"
|
||||||
echo "Running $blocks blocks per seed"
|
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 "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)
|
tmpdir=$(mktemp -d)
|
||||||
echo "Using temporary log directory: $tmpdir"
|
echo "Using temporary log directory: $tmpdir"
|
||||||
|
|
Loading…
Reference in New Issue