Process suicide upon thread death
Is there a way to get one thread to signal its parent (and preferably
other threads) that it's dying to a fault like SIGBUS or SIGSEGV? I'm
doing some software fault injections on a multi-threaded MPI program
and I'm finding that while the fault will kill a particular thread
PID, the rest of the application will continue on, even in a
compromised condition. I would much prefer that a dying thread
"broadcast" to other threads and/or parent that they need to exit too
so the entire application dies (and can be restarted). Before trying
to cobble together something, I thought I'd ask if there was a built
in mechanism.
Thanks!
matt
|