[ILUG] C - catching or ignoring SIGFPE
Kevin O Riordan
kor at compsoc.com
Tue Nov 13 18:53:44 GMT 2001
Ah, perfect. Lewine's "POSIX Programmers Guide" said that a program
"should not assume that it can continue from a SIGFPE ...", but I was
wondering if there was some trick I was missing.
Thanks to all,
-kev
On Boomtime, the 25th day of The Aftermath, Dave Neary roared:
> >
> The devil's in the detail here. At the end of the manpage for sigaction,
[snip]
> tions. Integer division by zero has undefined result. On
> some architectures it will generate a SIGFPE signal.
[snip]
> ate SIGFPE.) Ignoring this signal might lead to an end
> less loop."
[snip]
> Sorry there's no better answer than "You can't, in general", but there
>
> Cheers,
> Dave.
>
> --
> David Neary, E-Mail dave.neary at palamon.ie
> Palamon Technologies Ltd. Phone +353-1-634-5059
--
dead trees can't You grep
More information about the ILUG
mailing list