Go to the documentation of this file.
30 #define SIG_SOURCE_SOFT 0
31 #define SIG_SOURCE_HARD 1
35 #define SIG_SOURCE_CONNECTION_FAILED 2
48 #define IS_SIG(c) ((c)->sig->signal_received)
56 const char *
signal_name(
const int sig,
const bool upper);
volatile int signal_received
Contains all state information for one tunnel.
const char * signal_name(const int sig, const bool upper)
void print_signal(const struct signal_info *si, const char *title, int msglevel)
void signal_restart_status(const struct signal_info *si)
void process_explicit_exit_notification_timer_wakeup(struct context *c)
void throw_signal(const int signum)
Throw a hard signal.
int parse_signal(const char *signame)
void throw_signal_soft(const int signum, const char *signal_text)
Throw a soft global signal.
static void halt_non_edge_triggered_signals(void)
void restore_signal_state(void)
void pre_init_signal_catch(void)
void post_init_signal_catch(void)
int win32_signal_get(struct win32_signal *ws)
void win32_signal_close(struct win32_signal *ws)
int signal_reset(struct signal_info *si, int signum)
Clear the signal if its current value equals signum.
void register_signal(struct signal_info *si, int sig, const char *text)
Register a soft signal in the signal_info struct si respecting priority.
bool process_signal(struct context *c)
const char * signal_description(const int signum, const char *sigtext)
static void get_signal(volatile int *sig)
Copy the global signal_received (if non-zero) to the passed-in argument sig.
struct signal_info siginfo_static
void print_status(struct context *c, struct status_output *so)
void remap_signal(struct context *c)