Hi All!
I make command line script operating as demon and want to add
possibility to shutdown it from keyboard. I need to do some things at
shutdown moment. I can break script by Ctrl-break but in this case
destructors and registered shutdown functions are not called.
Is here any method to shutdown script from keyboard with destructors?
"Ctrl-break handler" or something like this?