Implements very simple signal handling. More...
Go to the source code of this file.
Functions | |
static void | handler (int s) |
Reinstalls the signal handler function. | |
void | ath_sig_init (void) |
Defines the signal handler function. | |
int | ath_sig_act (int *piquit) |
Handles response to any received signals. | |
Variables | |
static volatile int | sig_caught = 0 |
Implements very simple signal handling.
PURPOSE: Implements very simple signal handling. Since signals can come in at any time, these functions set a static global variable which will be checked and reset if necessary -- TAG 8/19/2004
CONTAINS PUBLIC FUNCTIONS:
PRIVATE FUNCTION PROTOTYPES:
Definition in file ath_signal.c.
int ath_sig_act | ( | int * | piquit | ) |
Handles response to any received signals.
At the moment, only response to SIGTERM is implemented.
Definition at line 50 of file ath_signal.c.
References ath_pout(), and sig_caught.
Referenced by main().
void ath_sig_init | ( | void | ) |
Defines the signal handler function.
Definition at line 39 of file ath_signal.c.
References handler().
Referenced by main().
static void handler | ( | int | s | ) | [static] |
Reinstalls the signal handler function.
Definition at line 77 of file ath_signal.c.
References sig_caught.
Referenced by ath_sig_init().
volatile int sig_caught = 0 [static] |
Definition at line 26 of file ath_signal.c.
Referenced by ath_sig_act(), and handler().