Commit fd65d5b3 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Trap handler

parent 8bd47994
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ set -eu

stop() {
  trap - SIGINT EXIT
  { pkill -f nc || true } 2>/dev/null
  { pkill -f nc || true; } 2>/dev/null
}

trap 'stop' EXIT SIGINT SIGTERM SIGHUP