fieker-DuValspielwiese
Last change
on this file since b38f81 was
659a7a,
checked in by Andreas Steenpass <steenpass@…>, 11 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
|
Rev | Line | |
---|
[0e1846] | 1 | #ifndef CNTRLC_H |
---|
| 2 | #define CNTRLC_H |
---|
| 3 | /**************************************** |
---|
| 4 | * Computer Algebra System SINGULAR * |
---|
| 5 | ****************************************/ |
---|
| 6 | /* |
---|
| 7 | * ABSTRACT - interupt and signal handling |
---|
| 8 | */ |
---|
[07dacd] | 9 | #include <setjmp.h> |
---|
[599326] | 10 | #include <kernel/structs.h> |
---|
[0e1846] | 11 | |
---|
[07dacd] | 12 | extern jmp_buf si_start_jmpbuf; |
---|
| 13 | extern short si_restart; |
---|
[0e1846] | 14 | extern int siRandomStart; |
---|
[e8a30d] | 15 | extern BOOLEAN siCntrlc; |
---|
[0e1846] | 16 | void init_signals(); |
---|
| 17 | |
---|
[655e1f] | 18 | extern BOOLEAN singular_in_batchmode; |
---|
| 19 | /* TRUE for child of a fork or started with --batch*/ |
---|
| 20 | |
---|
[659a7a] | 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 | |
---|
[0e1846] | 25 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.