signal handling (SIGSEGV) in threads
Ok, I think I figured out how to recover from a SIGSEGV. I use a signal handler and use setjmp and longump. But how do I do this in a thread safe manner?
I have a section of code, a simple memory accesser, that will sooner or later cause a SIGSEGV by accessing bad memory, and this code is in a class that will be used by a number of threads ( between 5 and 10). What can I do in a multithread enviroment to recover from this fault?
|