Kill netcat on exit

This commit is contained in:
Kroese 2023-05-03 05:56:11 +02:00 committed by GitHub
parent 68b0e3b9b6
commit 0782c5c57f

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eu set -eu
trap 'kill 0' EXIT
trap exit SIGINT SIGTERM trap exit SIGINT SIGTERM
# Serve the page # Serve the page