Skip to content

Commit

Permalink
silence kill if pid not found
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Apr 30, 2024
1 parent ac9feb1 commit b57408f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run/root/getvpnport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ function set_trap() {
# kill all child processes and exit with exit code 1
# required to allow us to stop this script as it has several sleep
# commands and background function
trap 'kill $(jobs -p); exit 1' INT TERM EXIT
trap 'kill $(jobs -p) >/dev/null 2>&1; exit 1' INT TERM EXIT

}

Expand Down

0 comments on commit b57408f

Please sign in to comment.