Thursday 15 August 2013

c - Use signal handler to return from a function -


Is it possible to write a signal handler that forces the program to return from a function?

For example, in the following code:

  zero myfun () {__asm ​​__ ("repeat: jmp repeat"); }   

myfun () is an indefinite loop. I want to stop this uncertified loop and move some signals back to the main function. Is this possible?

Thank you.

inside a signal handler, set main in setjmp to prepare> Large jump .

No comments:

Post a Comment