#include <setjmp.h>
#include "kernel/mod2.h"
#include "kernel/structs.h"
Go to the source code of this file.
◆ si_hdl_typ
◆ init_signals()
init signal handlers and error handling for libraries: NTL, factory
Definition at line 530 of file cntrlc.cc.
531{
532
533 #ifdef SIGSEGV
535 #endif
536 #ifdef SIGBUS
538 #endif
539 #ifdef SIGFPE
541 #endif
542 #ifdef SIGILL
544 #endif
545 #ifdef SIGIOT
547 #endif
552}
si_hdl_typ si_set_signal(int sig, si_hdl_typ signal_handler)
meta function for binding a signal to an handler
void sigsegv_handler(int sig)
void sig_chld_hdl(int)
additional default signal handler
◆ si_reset_signals()
void si_reset_signals |
( |
| ) |
|
Definition at line 568 of file cntrlc.cc.
569{
570
571
573
575}
VAR si_hdl_typ si_sig_term_hdl
VAR si_hdl_typ old_sig_chld_hdl
◆ si_set_signal()
meta function for binding a signal to an handler
- Parameters
-
[in] | sig | Signal number |
[in] | signal_handler | Pointer to signal handler |
- Returns
- value of signal()
Definition at line 121 of file cntrlc.cc.
122{
123#if 0
126 {
127 fprintf(
stderr,
"Unable to init signal %d ... exiting...\n", sig);
128 }
130
131
132
133#else
136
137
141 else
143
146 if (r == -1)
147 {
148 fprintf(
stderr,
"Unable to init signal %d ... exiting...\n", sig);
150 }
151#endif
153}
#define si_siginterrupt(arg1, arg2)
◆ si_set_signals()
Definition at line 560 of file cntrlc.cc.
561{
562
564
566}
VAR si_hdl_typ si_sig_chld_hdl
◆ sig_term_hdl()
Definition at line 77 of file cntrlc.cc.
78{
81 {
83 }
84}
VAR volatile BOOLEAN do_shutdown
VAR volatile int defer_shutdown
◆ sig_term_hdl_child()
◆ defer_shutdown
◆ do_shutdown
◆ si_restart
◆ si_start_jmpbuf
◆ singular_in_batchmode
◆ siRandomStart