I have a Bash script that launches a Python program. The Bash script handles SIGINT, SIGTERM and SIGHUP signals to do a cleanup operation. I noticed that when I close the process in a tab in LXTerminal, the cleanup process happens. But when I close the entire terminal window, the cleanup process closes.What am I missing to have the cleanup process to happen?
What signal is sent when you close a bash terminal to the programs it was running
bash;signals