The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Creates a global event loop, and manages signalling between the forked child and its parent as the server starts. More...
#include <freeradius-devel/server/client.h>
#include <freeradius-devel/server/listen.h>
#include <freeradius-devel/server/signal.h>
Go to the source code of this file.
Enumerations | |
enum | radius_signal_t { RADIUS_SIGNAL_SELF_NONE = (0) , RADIUS_SIGNAL_SELF_HUP = (1 << 0) , RADIUS_SIGNAL_SELF_TERM = (1 << 1) , RADIUS_SIGNAL_SELF_EXIT = (1 << 2) , RADIUS_SIGNAL_SELF_MAX = (1 << 3) } |
Functions | |
fr_event_list_t * | main_loop_event_list (void) |
Return the main loop event list. More... | |
void | main_loop_free (void) |
int | main_loop_init (void) |
Initialise the main event loop, setting up signal handlers. More... | |
void | main_loop_signal_raise (int flag) |
int | main_loop_start (void) |
Creates a global event loop, and manages signalling between the forked child and its parent as the server starts.
Definition in file main_loop.h.
enum radius_signal_t |
Enumerator | |
---|---|
RADIUS_SIGNAL_SELF_NONE | |
RADIUS_SIGNAL_SELF_HUP | |
RADIUS_SIGNAL_SELF_TERM | |
RADIUS_SIGNAL_SELF_EXIT | |
RADIUS_SIGNAL_SELF_MAX |
Definition at line 34 of file main_loop.h.
fr_event_list_t* main_loop_event_list | ( | void | ) |
Return the main loop event list.
Definition at line 165 of file main_loop.c.
void main_loop_free | ( | void | ) |
int main_loop_init | ( | void | ) |
Initialise the main event loop, setting up signal handlers.
This has to be done post-fork in case we're using kqueue, where the queue isn't inherited by the child process.
Definition at line 254 of file main_loop.c.
void main_loop_signal_raise | ( | int | flag | ) |
Definition at line 79 of file main_loop.c.
int main_loop_start | ( | void | ) |
Definition at line 195 of file main_loop.c.