My Project  UNKNOWN_GIT_VERSION
cntrlc.h
Go to the documentation of this file.
1 #ifndef CNTRLC_H
2 #define CNTRLC_H
3 /****************************************
4 * Computer Algebra System SINGULAR *
5 ****************************************/
6 /*
7 * ABSTRACT - interupt and signal handling
8 */
9 #include <setjmp.h>
10 #include "kernel/mod2.h"
11 #include "kernel/structs.h"
12 
13 extern jmp_buf si_start_jmpbuf;
14 extern short si_restart;
15 extern int siRandomStart;
16 void init_signals();
17 
19 /* TRUE for child of a fork or started with --batch*/
20 
21 /* for deferring the call of m2_end() in SIGTERM handler if necessary */
22 extern volatile BOOLEAN do_shutdown;
23 extern volatile int defer_shutdown;
24 
25 #endif
int BOOLEAN
Definition: auxiliary.h:85
volatile BOOLEAN do_shutdown
Definition: cntrlc.cc:79
short si_restart
Definition: cntrlc.cc:99
int siRandomStart
Definition: cntrlc.cc:98
BOOLEAN singular_in_batchmode
Definition: cntrlc.cc:67
jmp_buf si_start_jmpbuf
Definition: cntrlc.cc:97
void init_signals()
init signal handlers and error handling for libraries: NTL, factory
Definition: cntrlc.cc:561
volatile int defer_shutdown
Definition: cntrlc.cc:80