Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
disable SIGFPE traps
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpase committed Jan 17, 2017
1 parent 377e0ed commit ad25254
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sage/libs/ecl.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_ecl_options():
sage: test_ecl_options()
ECL_OPT_INCREMENTAL_GC = 0
ECL_OPT_TRAP_SIGSEGV = 1
ECL_OPT_TRAP_SIGFPE = 1
ECL_OPT_TRAP_SIGFPE = 0
ECL_OPT_TRAP_SIGINT = 1
ECL_OPT_TRAP_SIGILL = 1
ECL_OPT_TRAP_SIGBUS = 1
Expand Down Expand Up @@ -244,6 +244,8 @@ def init_ecl():

# we need it to stop handling SIGCHLD
ecl_set_option(ECL_OPT_TRAP_SIGCHLD, 0);
# we need it to stop handling SIGFPE - as of ECL 16.1.3
ecl_set_option(ECL_OPT_TRAP_SIGFPE, 0);

#we keep our own GMP memory functions. ECL should not claim them
ecl_set_option(ECL_OPT_SET_GMP_MEMORY_FUNCTIONS,0);
Expand Down

0 comments on commit ad25254

Please sign in to comment.