News for hackers. Stuff that matters.
Re:“Exit Traps” Can Make Your Bash Scripts Way More Robust a... by lgsymons on Tuesday June 20, 2023 @06:47PM (#36411786)
The signals EXIT HUP INT TERM cover everything I've run into (I'm actually using EXIT SIGHUP SIGINT SIGTERM but presumably it's equivalent).

In basic terms for my purposes these respectively account for a clean exit, the terminal emulator being closed, ctrl-c, the kill command (edit: the default SIGTERM kill -15, not the SIGKILL kill -9)

Re:“Exit Traps” Can Make Your Bash Scripts Way More Robust a... by thelastparadise on Tuesday June 20, 2023 @07:13PM (#36412054)
What's the signal for SIGKILL?
Re:“Exit Traps” Can Make Your Bash Scripts Way More Robust a... by EscapeFromNY on Tuesday June 20, 2023 @07:16PM (#36412084)
SIGKILL can't be handled. It's the signal you send when you don't want to give the process a chance to handle it.
Re:“Exit Traps” Can Make Your Bash Scripts Way More Robust a... by moehm on Tuesday June 20, 2023 @09:24PM (#36413188)
That's the difference between kill -15 (SIGTERM) and kill -9 (SIGKILL), where SIGTERM shuts down a process gracefully.
Re:“Exit Traps” Can Make Your Bash Scripts Way More Robust a... by w-ll on Tuesday June 20, 2023 @09:37PM (#36413290)
Relevant: Monzy performs at Stanford Univ. https://www.youtube.com/watch?v=Fow7iUaKrq4
Re:“Exit Traps” Can Make Your Bash Scripts Way More Robust a... by shepherdjerred on Wednesday June 21, 2023 @10:46AM (#36419139)
This is mandatory viewing