The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Enumerations | Functions
main_loop.h File Reference

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>
+ Include dependency graph for main_loop.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_tmain_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)
 

Detailed Description

Creates a global event loop, and manages signalling between the forked child and its parent as the server starts.

Id
b353c0381b2b6c2cec3e097fdc26b47469adb842

Definition in file main_loop.h.

Enumeration Type Documentation

◆ 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.

Function Documentation

◆ main_loop_event_list()

fr_event_list_t* main_loop_event_list ( void  )

Return the main loop event list.

Definition at line 162 of file main_loop.c.

+ Here is the caller graph for this function:

◆ main_loop_free()

void main_loop_free ( void  )

Definition at line 187 of file main_loop.c.

+ Here is the caller graph for this function:

◆ 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 251 of file main_loop.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ main_loop_signal_raise()

void main_loop_signal_raise ( int  flag)

Definition at line 79 of file main_loop.c.

+ Here is the caller graph for this function:

◆ main_loop_start()

int main_loop_start ( void  )

Definition at line 192 of file main_loop.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: