Is it possible to write a signal handler that forces the program to return from a function?
For example, in the following code:
void myfun() { __asm__("repeat: jmp repeat"); } myfun() has an indefinite loop. I would like to stop this indefinite loop and return to main function by raising some signal. Is this possible?
Thanks.
man setjmp