It depends what happened and what your app does.
True, but sometimes it's all you need. Flushing all unsaved data might be crucial.All you can do is to do some cleanup/logging and exit.
Yes, but sometimes you can deduce that information if you know your app tends to crash in a specific part of the code. Ability to intercept the signal might save your butt sometimes.You won't know why the signal was sent.
If all you need is to clean up (and you shouldn't try to do anything more), the stack doesn't have to be valid - you'll be pushing to the stack, not popping from it.You can't be sure if your data is still intact and even whether the stack is valid.
Bookmarks