Functions | |
sul_error_t * | smd_check_daemon_user (sul_cfg_block_t *config, apr_pool_t *pool) |
sul_error_t * | stated_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_t * | stated_modules_load (smd_module_system_t *modsys, const char *name, apr_pool_t *pool) |
sul_error_t * | stated_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 |
|
Catches all interesting signals and sets various flags indicating exactly which signal was caught so that the server logic can respond. |
|
Catches SIGHIP and sets the appropriate flag so the main logic can see that it came in. |
|
Main Entry Function
|
|
|
|
Central server logic function that handles initialization and the main loop.
|
|
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.
|
|
Initializes and sets up the Module system, loading all of the Modules referenced by the Configuration's Load blocks.
|
|
Atomic counter, used to signal the application when we receive the TERM/KILL signals and should simply die. |
|
Atomic counter, used to signal the application when we receive the HUP signal and should re-read configuration and other files. |