I'm teaching Python to catch SIGFPE, and currently I have this:

   #elif defined(__FreeBSD__)
   #include <ieeefp.h>
       fpresetsticky( FP_X_INV | FP_X_DZ | FP_X_OFL );
       fpsetmask( FP_X_INV | FP_X_DZ | FP_X_OFL );
       signal(SIGFPE, handler);

which executes on initialization and every time one of these 3 FP exceptions
is caught in "handler".

It works fine for the first FP exception (handler is called and the above
code reexecutes).  But for subsequent exceptions, handler is "not" called.

Apparently I'm not doing something I should be.  What is it?

-- 
Randall Hopper
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to