best application shutdown architecture on signal
Lots of info can be found, but I still unable to make a decision how to proceed.
How to find out if a third party has killed the C++ program in Linux?
I have to return exit status 140 exit status when the program is killed, but I don’t know how…