main.c revision ad56ed098867ae42af11132577b9ad3f1c5c17df
252N/A#include "lib-signals.h"
252N/A#include "auth-process.h"
252N/A#include "login-process.h"
252N/A#include "ssl-init.h"
252N/Avoid clean_child_process(void)
extern char **environ;
closelog();
static void settings_reload(void)
const char *process_type_name;
if (lib_signal_hup != 0) {
lib_signal_hup = 0;
if (status != 0) {
return NULL;
if (ret != 0)
return ip;
static void open_fds(void)
#ifdef HAVE_SSL
static void main_init(void)
ssl_init();
static void main_deinit(void)
if (lib_signal_kill != 0)
ssl_deinit();
closelog();
static void daemonize(void)
if (pid < 0)
if (pid != 0)
_exit(0);
setsid();
static void print_help(void)
lib_init();
print_help();
open_fds();
if (!foreground)
daemonize();
main_init();
main_deinit();
lib_deinit();