Keven Miller wrote:
> I don't suppose that there is a way to trap and recover from a SIGBUS or
> SIGSEGV
> error in unix, like mpe provides with xsystrap,xlibtrap,xcodetrap,xcontrap.
>
> It appears that once I have sigbus, all I can do is pull over to the side of
> the road.
>
> Keven Miller
> [log in to unmask]
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
Actually, the UNIX signal handling is not that different from MPE's.
You just need to write your signal handling procedure, and then arm it
using a signal() call (I believe the syntax is signal(int sig_number,
int * func_pointer).
Signal handling is one area where the various unixes went off in
different directions, and POSIX decided that both BSD and AT&T variants
were wrong and went yet a third direction. So you'll need to find the
specifics based on exactly what flavor you're implementing.
Mike
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|