From dc36114f4a36a8aa694aed92aaaced53c9777eb7 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 28 Nov 2023 18:19:15 -0800 Subject: 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. --- basta.sh | 1 + 1 file changed, 1 insertion(+) 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" } -- cgit v1.2.3