I am porting a Windows program to Linux. My program uses structured Windows exception handling (SEH). Linux does not support structured exception handling, but does provide signal processing. We can redefine the signal for developing SEH as a paradigm.
Once you can filter the exception, Windows provides three alternative execution control flows:
1) EXCEPTION_EXECUTE_HANDLER: execute the handler 2) EXCEPTION_CONTINUE_SEARCH: forward the exception to the next block (if it does not exist then in the OS) 3) EXCEPTION_CONTINUE_EXECUTION: Continue the exception from the instruction in which the interrupt occurred.
How can I achieve these control flows in Linux . On Linux, after processing the signal, the program starts execution from where it was interrupted. How to develop continue_search and execute_handler paradigms?
Thanks in advance
source
share