SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Namespaces | Enumerations | Functions | Variables
sig_handler.c File Reference

signal handling More...

Namespaces

 xref_spr_sig_handling
 Handling asynchronous events (signals) in SPRAAK
 

Enumerations

enum  {
  SPR_SIGNAL_NONE, SPR_SIGNAL_CTRLC, SPR_SIGNAL_QUIT, SPR_SIGNAL_ERROR,
  SPR_SIGNAL_PIPE, SPR_SIGNAL_USR1, SPR_SIGNAL_USR2
}
 

Functions

int spr_signal_report (int action_mask)
 

Variables

volatile int spr_signal_flag
 break requested ? More...
 

Detailed Description

signal handling

Catch signal (interrupts) and act on them or report them back to the main process. In case of an irrecoverable error, a trace dump is made as well (at least on platforms that support this feature). For more details, see Handling asynchronous events (signals) in SPRAAK

Author
Kris Demuynck
Date
12/01/1996
Revision History:
22/10/2008 - KD
Provided support for trace-backing on fatal errors.