My Project  UNKNOWN_GIT_VERSION
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 561 of file cntrlc.cc.

562 {
563 // NTL error handling (>= 9.3.0) ----------------------------------------
564 #ifdef HAVE_NTL
565 #if (((NTL_MAJOR_VERSION==9)&&(NTL_MINOR_VERSION>=3))||(NTL_MAJOR_VERSION>=10))
566  ErrorMsgCallback=WerrorS;
567  ErrorCallback=HALT;
568 #endif
569 #endif
570 // factory error handling: -----------------------------------------------
572 
573 // signal handler -------------------------------------------------------
574  #ifdef SIGSEGV
576  #endif
577  #ifdef SIGBUS
579  #endif
580  #ifdef SIGFPE
582  #endif
583  #ifdef SIGILL
585  #endif
586  #ifdef SIGIOT
588  #endif
593 }
void sigint_handler(int)
Definition: cntrlc.cc:311
void sig_term_hdl(int)
Definition: cntrlc.cc:82
void WerrorS(const char *s)
Definition: feFopen.cc:24
static void HALT()
Definition: mod2.h:127
void(* si_hdl_typ)(int)
Definition: cntrlc.cc:101
void sigsegv_handler(int sig)
Definition: cntrlc.cc:279
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:123
void sig_pipe_hdl(int)
Definition: cntrlc.cc:69
void(* factoryError)(const char *s)
Definition: cf_util.cc:75

Variable Documentation

◆ defer_shutdown

volatile int defer_shutdown

Definition at line 80 of file cntrlc.cc.

◆ do_shutdown

volatile BOOLEAN do_shutdown

Definition at line 79 of file cntrlc.cc.

◆ si_restart

short si_restart

Definition at line 99 of file cntrlc.cc.

◆ si_start_jmpbuf

jmp_buf si_start_jmpbuf

Definition at line 97 of file cntrlc.cc.

◆ singular_in_batchmode

BOOLEAN singular_in_batchmode

Definition at line 67 of file cntrlc.cc.

◆ siRandomStart

int siRandomStart

Definition at line 98 of file cntrlc.cc.