Skip to content

Commit

Permalink
avoid error on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Nov 9, 2024
1 parent d8cd25d commit b874ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tar1090.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e
trap 'echo "[ERROR] Error in line $LINENO when executing: $BASH_COMMAND"' ERR
trap 'echo tar1090.sh: exiting; trap - SIGTERM; kill -- -$( ps opgid= $$ | tr -d " " ) || true; exit 0' SIGTERM SIGINT SIGHUP SIGQUIT
trap 'echo tar1090.sh: exiting; trap - SIGTERM; pkill -P $$ || true; exit 0' SIGTERM SIGINT SIGHUP SIGQUIT

# run with lowest priority
renice 20 $$ || true
Expand Down

0 comments on commit b874ae4

Please sign in to comment.