#include "xdasd_main.h"
#include "xdasd_log.h"
#include "xdasd_net.h"
#include "xdasd_conf.h"
#include "xdasd_cmdline.h"
#include "xdasd_filter.h"
#include "xdasd_trigger.h"
#include "xdasd_logger.h"
#include <errno.h>
#include <stdio.h>
Go to the source code of this file.
Functions | |
static void | xdasd_clear_signal (unsigned sigbit) |
static int | xdasd_is_signaled (unsigned sigbit) |
static void | xdasd_handle_sigterm (void) |
void | xdasd_handle_sighup (void) |
Handle SIGHUP signal - reconfigure. | |
void | xdasd_set_signal (unsigned sigbit) |
Set the specified signal bit. | |
int | xdasd_main_init (XDASDCmdLine *cmdline) |
Server initialization. | |
void | xdasd_main_run (void) |
Server run loop. | |
Variables | |
static unsigned | s_xdasd_sigmask = 0 |
Definition in file xdasd_main.c.
static void xdasd_clear_signal | ( | unsigned | sigbit | ) | [static] |
Definition at line 68 of file xdasd_main.c.
References s_xdasd_sigmask.
Referenced by xdasd_handle_sighup(), and xdasd_handle_sigterm().
void xdasd_handle_sighup | ( | void | ) |
Handle SIGHUP signal - reconfigure.
For internal use only.
Definition at line 109 of file xdasd_main.c.
References xdasd_clear_signal(), xdasd_conf_init(), xdasd_log(), and XDASD_SIGHUP.
Referenced by xdasd_main_run().
static void xdasd_handle_sigterm | ( | void | ) | [static] |
Definition at line 92 of file xdasd_main.c.
References xdasd_clear_signal(), xdasd_log(), xdasd_net_exit(), and XDASD_SIGTERM.
Referenced by xdasd_main_run().
static int xdasd_is_signaled | ( | unsigned | sigbit | ) | [static] |
Definition at line 82 of file xdasd_main.c.
References s_xdasd_sigmask.
Referenced by xdasd_main_run().
unsigned s_xdasd_sigmask = 0 [static] |
Definition at line 59 of file xdasd_main.c.
Referenced by xdasd_clear_signal(), xdasd_is_signaled(), and xdasd_set_signal().