in reply to Re^4: Demonize Module, What are your thoughts?
in thread Demonize Module, What are your thoughts?
The first thing to realize is that whatever you do won't be reliable. If you receive a signal that can't be caught, you won't have the chance to take any action about it.
That said, $SIG{__DIE__} should work fine. Just be sure to check $^S before you do anything rash, and test your handler when it's done because I'm not really sure this does what you want.
|
|---|