From: Jakub Jelinek Date: Thu, 27 Apr 2006 09:17:12 +0000 (+0000) Subject: * nscd/connections.c (sighup_handler): Only run prune_cache on X-Git-Tag: cvs/fedora-glibc-2_4_90-3~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b356005b4dca9c57af7cb1f5313a13a728c6310;p=thirdparty%2Fglibc.git * nscd/connections.c (sighup_handler): Only run prune_cache on enabled databases. --- diff --git a/ChangeLog b/ChangeLog index b62b22536b3..b1361a13820 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-04-27 Jakub Jelinek + + * nscd/connections.c (sighup_handler): Only run prune_cache on + enabled databases. + 2006-04-26 Ulrich Drepper * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix typo which caused diff --git a/nscd/connections.c b/nscd/connections.c index a52082cba38..f8e66c20a6e 100644 --- a/nscd/connections.c +++ b/nscd/connections.c @@ -1897,13 +1897,16 @@ finish_drop_privileges (void) void sighup_handler (int signum) { - /* Prune the password database */ + /* Prune the password database. */ + if (dbs[pwddb].enabled) prune_cache (&dbs[pwddb], LONG_MAX); - /* Prune the group database */ + /* Prune the group database. */ + if (dbs[grpdb].enabled) prune_cache (&dbs[grpdb], LONG_MAX); - /* Prune the host database */ + /* Prune the host database. */ + if (dbs[hstdb].enabled) prune_cache (&dbs[hstdb], LONG_MAX); }