From ad045176238549c3267fff3e8c0014dd5e9ffbdf Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sat, 2 Feb 2008 00:17:35 +0000 Subject: Block signals to avoid fork /signal races. --- src/includes/rc-misc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/includes') diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index 946754ee..1ffe48de 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -34,7 +34,6 @@ #include #include -#include #include #include @@ -134,7 +133,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)); +int 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. */ -- cgit v1.2.3