GNUnet 0.21.1
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 handler. 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 31 of file signal.c.

Variable Documentation

◆ sc_head

struct GNUNET_SIGNAL_Context* sc_head
static

◆ sc_tail

struct GNUNET_SIGNAL_Context* sc_tail
static

Definition at line 49 of file signal.c.

Referenced by GNUNET_SIGNAL_handler_install(), and GNUNET_SIGNAL_handler_uninstall().