Main Page | Modules | Data Structures | File List | Data Fields

Main
[State Daemon]


Functions

sul_error_tsmd_check_daemon_user (sul_cfg_block_t *config, apr_pool_t *pool)
sul_error_tstated_main (const char *cfg_path, apr_pool_t *globalp)
void catch_signal_hupped (apr_signum_t signl)
void catch_signal_death (apr_signum_t signl)
sul_error_tstated_modules_load (smd_module_system_t *modsys, const char *name, apr_pool_t *pool)
sul_error_tstated_modules_setup (sul_cfg_block_t *cfg, smd_module_system_t **modsys, apr_pool_t *pool)
apr_int32_t main (apr_int32_t argc, const char *const *argv)

Variables

volatile apr_uint32_t g_received_signal_hupped = FALSE
volatile apr_uint32_t g_received_signal_death = FALSE

Function Documentation

void catch_signal_death apr_signum_t  signl  )  [static]
 

Catches all interesting signals and sets various flags indicating exactly which signal was caught so that the server logic can respond.

void catch_signal_hupped apr_signum_t  signl  )  [static]
 

Catches SIGHIP and sets the appropriate flag so the main logic can see that it came in.

apr_int32_t main apr_int32_t  argc,
const char *const *  argv
 

Main Entry Function

Parameters:
argc The number of command line options.
argv An array of all of our command line options.
Returns:
Non zero if some kind of error occurs.

sul_error_t * smd_check_daemon_user sul_cfg_block_t config,
apr_pool_t *  pool
[static]
 

Parameters:
config 
pool 
Returns:

sul_error_t * stated_main const char *  cfg_path,
apr_pool_t *  globalp
[static]
 

Central server logic function that handles initialization and the main loop.

Parameters:
globalp A memory pool to allocate work from.
Returns:
An sul_error_t instance if an error occured and NULL otherwise.

sul_error_t* stated_modules_load smd_module_system_t modsys,
const char *  name,
apr_pool_t *  pool
[static]
 

Loads an individual Module into the system. First all of the staticly linked modules will be checked for the Module and then if it isn't found in there an attempt will be made to load the module dynamically.

Parameters:
modsys Module system to load the Module with.
name Name of the Module to load.
pool A memory pool to allocate work from.
Returns:
An sul_error_t instance if an error occured and NULL otherwise.

sul_error_t* stated_modules_setup sul_cfg_block_t cfg,
smd_module_system_t **  modsys,
apr_pool_t *  pool
[static]
 

Initializes and sets up the Module system, loading all of the Modules referenced by the Configuration's Load blocks.

Parameters:
modsys Pointer to receive the initialized Module System.
pool A memory pool to allocate work from.
Returns:
An sul_error_t instance if an error occured and NULL otherwise.


Variable Documentation

volatile apr_uint32_t g_received_signal_death = FALSE
 

Atomic counter, used to signal the application when we receive the TERM/KILL signals and should simply die.

volatile apr_uint32_t g_received_signal_hupped = FALSE
 

Atomic counter, used to signal the application when we receive the HUP signal and should re-read configuration and other files.


Generated on Wed Apr 28 09:38:38 2004 for State by doxygen 1.3.5