mirror of
https://github.com/trezor/blockbook.git
synced 2026-02-20 00:51:39 +01:00
Exit tunnel script if some of children dies
This commit is contained in:
@@ -25,4 +25,10 @@ at_exit() {
|
||||
}
|
||||
|
||||
trap at_exit EXIT
|
||||
sleep inf
|
||||
|
||||
wait -n
|
||||
code=$?
|
||||
|
||||
if [ $code != 0 ]; then
|
||||
exit $code
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user