aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xradio.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/radio.sh b/radio.sh
index b6eb305..31a5ac1 100755
--- a/radio.sh
+++ b/radio.sh
@@ -16,9 +16,10 @@ printmsg() {
script_pid=0
sigint_trap() {
- printerr "Got Ctrl-C, killing radio encoder script"
+ printerr "Got Ctrl-C"
if [[ "$script_pid" != "0" ]] ; then
- kill $script_pid
+ printmsg "killing radio encoder script $script_pid"
+ kill -INT $script_pid
script_pid=0
wait
fi