Re: [xml] SIGFPE + small bug



Apparently, HAVE_SIGNAL is not defined anywhere so the signal isn't
blocked; this is on FreeBSD (both 4.2 and 3.3).
 Ah ... and how does one trap a signal on FreeBSD ?

That not the problem: FreeBSD traps signals the same way pretty much all
Unices do, using signal(), but the signal-handler doesn't get set because
HAVE_SIGNAL is not defined anywhere. Where (or by what) should it be
defined?

I just noticed another problem: the code in xmlXPathDivideBy() also checks
for SIGFPE and SIG_IGN definitions, but since HAVE_SIGNAL_H is never
defined anywhere, signal.h is not included and SIGFPE/SIG_IGN don't get
defined as well.

Perhaps a check for signal.h should be included?

                                                                    robert




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]