Commit 2a9084b1 authored by Marius Gerbershagen's avatar Marius Gerbershagen

prevent floating point exception signals if ECL_OPT_TRAP_SIGFPE is false

    Fixes #347.
parent 7ff23cbb
......@@ -100,6 +100,12 @@ in C code
is still referenced in the memory, it's programmer duty to call wait.
- The ECL_OPT_SIGALTSTACK_SIZE option has been removed, because it had no
- A false value of the ECL_OPT_TRAP_SIGFPE option now prevents floating
point exception signals from being generated by default. In version
16.1.3, ECL would not change the options controlling the generation of
such signals and simply not install a signal handler for floating point
exceptions. This could lead to such signals being generated and caught by
another signal handler if ECL was used as an embedded library.
* 16.1.3 changes since 16.1.2
** Announcement
Dear Community,
......@@ -1408,6 +1408,8 @@ install_fpe_signal_handlers()
/* si_trap_fpe(@'division-by-zero', ECL_NIL); */
/* si_trap_fpe(@'floating-point-overflow', ECL_NIL); */
/* # endif */
} else {
si_trap_fpe(ECL_T, ECL_NIL);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment