diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-11-28 18:19:15 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-11-28 18:19:15 -0800 |
commit | dc36114f4a36a8aa694aed92aaaced53c9777eb7 (patch) | |
tree | 59e302fbf823c458b87ec76ae2a9e8841159bf57 | |
parent | 996912a3f4dba70dc548f6d8d18349a77b2db2bb (diff) | |
download | basta-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.sh | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -152,6 +152,7 @@ basta.cleanup() printf "${esc}8" stty rows $newlines + kill -KILL $basta_status_alarm_pid printf "Basta!\n" } |