diff options
Diffstat (limited to 'nscd/nscd.c')
-rw-r--r-- | nscd/nscd.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nscd/nscd.c b/nscd/nscd.c index 4586cf04c9..7f8f58fde6 100644 --- a/nscd/nscd.c +++ b/nscd/nscd.c @@ -115,9 +115,16 @@ static struct argp argp = options, parse_opt, NULL, doc, }; +/* The SIGHUP handler is extern to this file */ +extern void sighup_handler(int signum); + /* True if only statistics are requested. */ static bool get_stats; +#ifdef atomic_init_nscd +atomic_init_nscd +#endif + int main (int argc, char **argv) { @@ -256,6 +263,7 @@ main (int argc, char **argv) signal (SIGINT, termination_handler); signal (SIGQUIT, termination_handler); signal (SIGTERM, termination_handler); + signal (SIGHUP, sighup_handler); signal (SIGPIPE, SIG_IGN); /* Cleanup files created by a previous 'bind'. */ |