HP3000-L Archives

November 2003, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mike Yawn <[log in to unmask]>
Reply To:
Mike Yawn <[log in to unmask]>
Date:
Tue, 18 Nov 2003 13:48:01 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
 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 *

ATOM RSS1 RSS2