Messages in this thread | | | Date | Tue, 23 Apr 1996 06:03:03 -0400 (EDT) | From | Microcomputers <> | Subject | Re: signal(SIGFPE,SIG_IGN) causes endless loop |
| |
On Mon, 22 Apr 1996, Albert Cahalan wrote:
> >>> #include <stdio.h> > >>> #include <signal.h> > >>> > >>> int main() > >>> { > >>> int a,b,c; > >>> > >>> signal(SIGFPE,SIG_IGN); > >>> a = 1; > >>> b = 0; > >>> c = a/b; > >>> return 0; > >>> } > >> > >> In case anyone cares, this program runs to completion under > >> both Digital Unix and SunOS. The result of c after the > >> division is 0 on both platforms. > > > > It dumps core on Solaris 2.4 with the message: > > Floating exception (core dumped). > > OK, what about x86 OSs? This could affect iBCS a bit. > > FreeBSD: > Unixware: > SCO Unix: > Solaris/x86: core dump? > PosixWinNT: > Hurd: > Solaris/x86 confirmation: merlin:uname -a SunOS merlin 5.4 generic i86pc i386 merlin:sigerr Arithmatic Exception(coredump)
| |