diff options
author | Roy Marples <roy@marples.name> | 2008-02-01 13:20:19 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-02-01 13:20:19 +0000 |
commit | f2ce40d90b92f6049745f6f06191bd43b6b931dd (patch) | |
tree | bc64ec292bbe407b420f6795ce1da7cc4e01c08a /src/includes/rc-misc.h | |
parent | 01e148d29d643af342a67bfa2f70928d6a6e0b75 (diff) |
Use sigaction over signal.
Diffstat (limited to 'src/includes/rc-misc.h')
-rw-r--r-- | src/includes/rc-misc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index e034c1e5..946754ee 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -34,6 +34,7 @@ #include <sys/stat.h> #include <errno.h> +#include <signal.h> #include <stdbool.h> #include <string.h> @@ -133,6 +134,7 @@ bool rc_conf_yesno (const char *var); char **env_filter (void); char **env_config (void); bool service_plugable (const char *service); +void signal_setup (int sig, void (*handler)(int)); /* basename_c never modifies the argument. As such, if there is a trailing * slash then an empty string is returned. */ |