Hacker News new | ask | show | jobs
by _pmf_ 4352 days ago
It's also amazing that you can trap SIGTERM to perform clean-up tasks when the user Ctrl-Cs a script.
1 comments

That would be SIGINT - SIGTERM is sent when you kill the process without specifying a specific signal to send, or when the system is shutting down.