[lkml]   [1996]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: signal(SIGFPE,SIG_IGN), possible solution?
H. Peter Anvin writes:
> No kidding. However, it seems to me that either SIGILL, SIGIOT or
> SIGBUS (in decreasing order of personal preference) would be a better
> signal than SIGFPE; I think it is reasonable that a program should be
> able to expect that receiving a SIGFPE means an FP exception has
> occurred.

I think this is another of those Historical Reasons things ... this is
what various other flavours of UNIX do, and changing it would break
compatibility. It seems to me that SIGFPE should really be named
SIGMATH or something like that, to indicate that it's a general math
error signal (integer and float) rather than float specifically, but I
guess we're stuck with it now.


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