lkml.org 
[lkml]   [1996]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: signal(SIGFPE,SIG_IGN) causes endless loop

On Dynix/ptx 4.0 and 4.1 it works as it should (ie exits without any
coredumping. On SunOS it coredumps as well (btw, I think someone said on
SunOS it doesnt coredump (I think it is even in this message - must have
been a different version of SunOS (I think))).

Regards,
Tigran.

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:
>
>




\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.072 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site