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 extern BOOLEAN siCntrlc;
17 void init_signals();
18 
20 /* TRUE for child of a fork or started with --batch*/
21 
22 /* for deferring the call of m2_end() in SIGTERM handler if necessary */
23 extern volatile BOOLEAN do_shutdown;
24 extern volatile int defer_shutdown;
25 
26 #endif
int siRandomStart
Definition: cntrlc.cc:103
jmp_buf si_start_jmpbuf
Definition: cntrlc.cc:102
volatile BOOLEAN do_shutdown
Definition: cntrlc.cc:84
short si_restart
Definition: cntrlc.cc:104
BOOLEAN siCntrlc
Definition: cntrlc.cc:105
BOOLEAN singular_in_batchmode
Definition: cntrlc.cc:72
void init_signals()
Definition: cntrlc.cc:573
int BOOLEAN
Definition: auxiliary.h:86
volatile int defer_shutdown
Definition: cntrlc.cc:85