X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=daemon.h;h=b530b0d76b48b673fd7ae7626c48a6dd91ab7751;hp=c715360583d350275641042b574708fd0cd2ec04;hb=f14e5c15c82d4bf3b7ea611eab6bce95d4767b61;hpb=904e302f0b64887f18c9e2fec7b0bb405675ad22 diff --git a/daemon.h b/daemon.h index c7153605..b530b0d7 100644 --- a/daemon.h +++ b/daemon.h @@ -1,7 +1,7 @@ /** \file daemon.h exported symbols from daemon.c */ -void daemonize(bool parent_waits); +int daemonize(bool parent_waits); void daemon_open_log_or_die(void); void daemon_close_log(void); void daemon_log_welcome(const char *whoami); @@ -11,6 +11,7 @@ void daemon_set_start_time(void); time_t daemon_get_uptime(const struct timeval *current_time); __malloc char *daemon_get_uptime_str(const struct timeval *current_time); void daemon_set_logfile(const char *logfile_name); +void daemon_set_hooks(void (*pre_log_hook)(void), void (*post_log_hook)(void)); void daemon_set_flag(unsigned flag); void daemon_set_loglevel(const char *loglevel); bool daemon_init_colors_or_die(int color_arg, int color_arg_auto,