News for hackers. Stuff that matters.
Re:“Exit Traps” Can Make Your Bash Scripts Way More Robust a... by arp242 on Tuesday June 20, 2023 @06:08PM (#36411378)
POSIX says that "setting a trap for SIGKILL or SIGSTOP produces undefined results", but for signals it describes SIGKILL as "Kill (cannot be caught or ignored)".

I'm guessing this is some relic from 80s Unix systems where SIGKILL behaved different, or perhaps just an inconsistency/oversight.

Re:“Exit Traps” Can Make Your Bash Scripts Way More Robust a... by nerdponx on Tuesday June 20, 2023 @06:42PM (#36411739)
I read that as undefined in terms of how the shell itself handles it, because the OS doesn't care.
Re:“Exit Traps” Can Make Your Bash Scripts Way More Robust a... by remram on Tuesday June 20, 2023 @09:50PM (#36413377)
I think it means that it is valid for OSes to return an error instead of doing nothing, if you attempt it.