- install the SPRANNLIB segmentation violation handler (LOCAL)
SYNOPSIS
int set_sigsegv_handler
(new_handler)
ARGUMENTS
void
(*new_handler)()
A function pointer to the new
segmentation violation handler.
RETURNS
TRUE in case of an error, FALSE in case of succes.
FUNCTION
This function is called by the first ....alloc_monitor function called
after SPRANNLIB is initialized, or if the linked list of MALINFO
structures is empty (indicating no memory is yet allocated using a monitor
routine). It replaces the standard segmentation violation
handler by sigsegv_handler.
NOTE
This function is only called when the SPRDEBUG compilation flag was set
during the compilation of SPRANNLIB (see LIBRARY-flags). It calls the
standard signal function to accomplish this. A pointer to the old
handler is stored in the old_handler variable (see
MONITOR-ALLOCATION-variables).