jengelh-datetimespielwiese
Last change
on this file since 659a7a was
659a7a,
checked in by Andreas Steenpass <steenpass@…>, 9 years ago
|
chg: defer shutdown caused by SIGTERM if necessary
(cherry picked from commit a76a64e703bae29ffee8057ab2b16abb20f9158a)
Signed-off-by: Andreas Steenpass <steenpass@mathematik.uni-kl.de>
Conflicts:
Singular/cntrlc.cc
Singular/cntrlc.h
Singular/misc_ip.cc
|
-
Property mode set to
100644
|
File size:
634 bytes
|
Line | |
---|
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/structs.h> |
---|
11 | |
---|
12 | extern jmp_buf si_start_jmpbuf; |
---|
13 | extern short si_restart; |
---|
14 | extern int siRandomStart; |
---|
15 | extern BOOLEAN siCntrlc; |
---|
16 | void init_signals(); |
---|
17 | |
---|
18 | extern BOOLEAN singular_in_batchmode; |
---|
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 |
---|
Note: See
TracBrowser
for help on using the repository browser.