Skip to content

Commit 8f5dedd

Browse files
committed
cluster/run.sh: fix ctrl-c handling
1 parent 16c7406 commit 8f5dedd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cluster/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ done
2525

2626
# Wait for the background processes to exit. Kill all toyDB processes when the
2727
# script exits (e.g. via Ctrl-C).
28-
trap 'kill $(jobs -p)' EXIT
29-
wait < <(jobs -p)
28+
trap 'kill -TERM -- -$$ 2>/dev/null' INT TERM EXIT
29+
wait

0 commit comments

Comments
 (0)