aboutsummaryrefslogtreecommitdiff
path: root/src/includes/rc-misc.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-02-02 00:17:35 +0000
committerRoy Marples <roy@marples.name>2008-02-02 00:17:35 +0000
commitad045176238549c3267fff3e8c0014dd5e9ffbdf (patch)
tree8332746190f8e9fc47007090a3beac0a64d133c6 /src/includes/rc-misc.h
parentfef5d0af591c6c8a91f69bba5e62c99df1a732c9 (diff)
Block signals to avoid fork /signal races.
Diffstat (limited to 'src/includes/rc-misc.h')
-rw-r--r--src/includes/rc-misc.h3
1 files changed, 1 insertions, 2 deletions
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 <sys/stat.h>
#include <errno.h>
-#include <signal.h>
#include <stdbool.h>
#include <string.h>
@@ -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. */