aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-11-28 18:19:15 -0800
committerKaz Kylheku <kaz@kylheku.com>2023-11-28 18:19:15 -0800
commitdc36114f4a36a8aa694aed92aaaced53c9777eb7 (patch)
tree59e302fbf823c458b87ec76ae2a9e8841159bf57
parent996912a3f4dba70dc548f6d8d18349a77b2db2bb (diff)
downloadbasta-dc36114f4a36a8aa694aed92aaaced53c9777eb7.tar.gz
basta-dc36114f4a36a8aa694aed92aaaced53c9777eb7.tar.bz2
basta-dc36114f4a36a8aa694aed92aaaced53c9777eb7.zip
cleanup: kill the status alarm task.
- in basta.cleanup we kill $basta_status_alarm_pid. This is not strictly necessary because the process quits if the command kill -ALRM $$ fails. If the parent's PID got recycled, though, it would keep sending SIGALRM to the wrong process.
-rw-r--r--basta.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/basta.sh b/basta.sh
index 04b4fd4..8eb043f 100644
--- a/basta.sh
+++ b/basta.sh
@@ -152,6 +152,7 @@ basta.cleanup()
printf "${esc}8"
stty rows $newlines
+ kill -KILL $basta_status_alarm_pid
printf "Basta!\n"
}