Path: utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!ames!pasteur!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: DeciGel (was Re: UNIX on the Amiga) Message-ID: <8803110314.AA15538@cory.Berkeley.EDU> Date: 11 Mar 88 03:14:32 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 20 :> >> >Is there a DeciGel-like program to trap and ignore divide-by-zero errors? : :> Let's see if the second time it works :-) GET MANX 3.60a. : :> 3.60a includes a UNIX-like signal call that can trap the following: : :> divide by zero and overflow (SIGFPE) :> illegal instruction (SIGILL) :> illegal address or bus error (SIGSEGV) : :Wot, no SIGINT or SIGQUIT? Be real easy to redirect _abort() to handle that :case... SIGFPE, SIGILL, and SIGSEGV are synchronous exceptions. SIGINT and SIGQUIT are asynchronous interrupts. The problem with having traps for SIGINT and SIGQUIT (lets say you defined them as ^C and ^E) is that you could be interrupting a critical library call. Exceptions, on the otherhand, (usually) occur within a user program. -Matt