Recovery from signal trap

Andy Biewer andrew at csd4.csd.uwm.edu
Mon Aug 13 03:32:18 AEST 1990


Hello,

I have a number of programs that, under certain conditions which are
undetectable before-hand (otherwise, I would have made reservations for
them), the program aborts with SIGILL, SIGSEGV, or SIGBUS.  I can trap those
signals, and I know how to exit gracefully if this occurs.  What I want to
know is, if this happens, I'd like to perhaps reset certain variables, maybe
clear the process stack and offer the user the possibility of starting over
or even continuing at a certain function.  I know that ptrace(2) could
possibly be used, but I'd like to avoid that.

Thanks in advance,
Andy B.



More information about the Comp.lang.c mailing list