GNUnet  0.10.x
Data Structures | Macros | Functions | Variables
signal.c File Reference

code for installing and uninstalling signal handlers More...

#include "platform.h"
#include "gnunet_util_lib.h"
Include dependency graph for signal.c:

Go to the source code of this file.

Data Structures

struct  GNUNET_SIGNAL_Context
 

Macros

#define LOG(kind, ...)   GNUNET_log_from(kind, "util-signal", __VA_ARGS__)
 

Functions

struct GNUNET_SIGNAL_ContextGNUNET_SIGNAL_handler_install (int signum, GNUNET_SIGNAL_Handler handler)
 Install a signal handler that will be run if the given signal is received. More...
 
void GNUNET_SIGNAL_handler_uninstall (struct GNUNET_SIGNAL_Context *ctx)
 Uninstall a previously installed signal hander. More...
 
void GNUNET_SIGNAL_raise (const int sig)
 Raise the given signal by calling the installed signal handlers. More...
 

Variables

static struct GNUNET_SIGNAL_Contextsc_head
 
static struct GNUNET_SIGNAL_Contextsc_tail
 

Detailed Description

code for installing and uninstalling signal handlers

Author
Christian Grothoff

Definition in file signal.c.

Macro Definition Documentation

◆ LOG

#define LOG (   kind,
  ... 
)    GNUNET_log_from(kind, "util-signal", __VA_ARGS__)

Definition at line 30 of file signal.c.

Variable Documentation

◆ sc_head

struct GNUNET_SIGNAL_Context* sc_head
static

Definition at line 45 of file signal.c.

◆ sc_tail

struct GNUNET_SIGNAL_Context* sc_tail
static

Definition at line 47 of file signal.c.