From fdce4769f2e0f4175163ffa181c7b3b2192f7b22 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 24 Oct 2017 10:26:18 -0500 Subject: supervise-daemon: multiple fixes - Harden against dying by handling all signals that would terminate the program and adding --reexec support - factor the supervisor into its own function - fix test for whether we are already running --- src/includes/rc-misc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/includes') diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index 9a55c413..e6789911 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -47,6 +47,7 @@ bool rc_conf_yesno(const char *var); void env_filter(void); void env_config(void); int signal_setup(int sig, void (*handler)(int)); +int signal_setup_restart(int sig, void (*handler)(int)); int svc_lock(const char *); int svc_unlock(const char *, int); pid_t exec_service(const char *, const char *); -- cgit v1.2.3