Functions | Variables
cntrlc.h File Reference
#include <setjmp.h>
#include "kernel/mod2.h"
#include "kernel/structs.h"

Go to the source code of this file.

Functions

void init_signals ()
 init signal handlers and error handling for libraries: NTL, factory More...
 

Variables

jmp_buf si_start_jmpbuf
 
short si_restart
 
int siRandomStart
 
BOOLEAN singular_in_batchmode
 
volatile BOOLEAN do_shutdown
 
volatile int defer_shutdown
 

Function Documentation

◆ init_signals()

void init_signals ( )

init signal handlers and error handling for libraries: NTL, factory

Definition at line 559 of file cntrlc.cc.

560 {
561 // NTL error handling (>= 9.3.0) ----------------------------------------
562 #ifdef HAVE_NTL
563 #if (((NTL_MAJOR_VERSION==9)&&(NTL_MINOR_VERSION>=3))||(NTL_MAJOR_VERSION>=10))
564  ErrorMsgCallback=WerrorS;
565  ErrorCallback=HALT;
566 #endif
567 #endif
568 // factory error handling: -----------------------------------------------
570 
571 // signal handler -------------------------------------------------------
572  #ifdef SIGSEGV
574  #endif
575  #ifdef SIGBUS
577  #endif
578  #ifdef SIGFPE
580  #endif
581  #ifdef SIGILL
583  #endif
584  #ifdef SIGIOT
586  #endif
591 }
void sigint_handler(int)
Definition: cntrlc.cc:309
void sig_term_hdl(int)
Definition: cntrlc.cc:80
void WerrorS(const char *s)
Definition: feFopen.cc:24
static void HALT()
Definition: mod2.h:127
void(* si_hdl_typ)(int)
Definition: cntrlc.cc:99
void sigsegv_handler(int sig)
Definition: cntrlc.cc:277
si_hdl_typ si_set_signal(int sig, si_hdl_typ signal_handler)
meta function for binding a signal to an handler
Definition: cntrlc.cc:121
void sig_pipe_hdl(int)
Definition: cntrlc.cc:67
void(* factoryError)(const char *s)
Definition: cf_util.cc:75

Variable Documentation

◆ defer_shutdown

volatile int defer_shutdown

Definition at line 78 of file cntrlc.cc.

◆ do_shutdown

volatile BOOLEAN do_shutdown

Definition at line 77 of file cntrlc.cc.

◆ si_restart

short si_restart

Definition at line 97 of file cntrlc.cc.

◆ si_start_jmpbuf

jmp_buf si_start_jmpbuf

Definition at line 95 of file cntrlc.cc.

◆ singular_in_batchmode

BOOLEAN singular_in_batchmode

Definition at line 65 of file cntrlc.cc.

◆ siRandomStart

int siRandomStart

Definition at line 96 of file cntrlc.cc.