diff options
author | Roland McGrath <roland@gnu.org> | 2004-09-22 21:21:10 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2004-09-22 21:21:10 +0000 |
commit | b5707b44d25d7af61b0338c2a2206c036eaf7337 (patch) | |
tree | d8b9e865cbc78d64835a63959370865a2a043223 /nscd/nscd.c | |
parent | 4ff389feb39f2eb649530b843d478c80c27ab4cf (diff) |
Changes and additions migrated from cvs.devel.redhat.com:/cvs/devel/glibc to fedora-branch
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'. */ |