Creates a global event loop, and manages signalling between the forked child and its parent as the server starts.
More...
#include <freeradius-devel/server/cf_parse.h>
#include <freeradius-devel/server/main_loop.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/server/state.h>
#include <freeradius-devel/server/trigger.h>
#include <freeradius-devel/server/util.h>
#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/syserror.h>
#include <signal.h>
#include <fcntl.h>
Go to the source code of this file.
Creates a global event loop, and manages signalling between the forked child and its parent as the server starts.
- Id
- 6d2e28c463485709e1f215e66c6ab12f65b96bd7
- Copyright
- 2012 The FreeRADIUS server project
-
2012 Alan DeKok (aland.nosp@m.@dep.nosp@m.loyin.nosp@m.grad.nosp@m.ius.c.nosp@m.om)
Definition in file main_loop.c.
◆ _loop_status()
◆ main_loop_event_list()
Return the main loop event list.
Definition at line 165 of file main_loop.c.
◆ main_loop_free()
void main_loop_free |
( |
void |
| ) |
|
◆ main_loop_init()
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.
- Returns
- 0 on success.
- -1 on failure.
Definition at line 254 of file main_loop.c.
◆ main_loop_signal_process()
static void main_loop_signal_process |
( |
int |
flag | ) |
|
|
static |
◆ main_loop_signal_raise()
void main_loop_signal_raise |
( |
int |
flag | ) |
|
◆ main_loop_signal_recv()
I/O handler listening on the signal pipe.
Definition at line 145 of file main_loop.c.
◆ main_loop_start()
int main_loop_start |
( |
void |
| ) |
|
◆ event_list
◆ radius_pid
◆ self_pipe
int self_pipe[2] = { -1, -1 } |
|
static |