aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-10-07 01:20:53 -0400
committerUlrich Drepper <drepper@gmail.com>2011-10-07 01:20:53 -0400
commit21fd49a9ef9c21cd2c87d0facf9f53bedb5cea20 (patch)
tree4646a820cae6c4334f1a6bda2649e0f39f688d48
parent32b63198d62a59adcc11bb9b165fd18e756e4e39 (diff)
downloadglibc-21fd49a9ef9c21cd2c87d0facf9f53bedb5cea20.tar
glibc-21fd49a9ef9c21cd2c87d0facf9f53bedb5cea20.tar.gz
glibc-21fd49a9ef9c21cd2c87d0facf9f53bedb5cea20.tar.bz2
glibc-21fd49a9ef9c21cd2c87d0facf9f53bedb5cea20.zip
Don't unnecesarily use inotify in nscd
-rw-r--r--ChangeLog5
-rw-r--r--nscd/connections.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ad0e1aeaa..edd2728500 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-07 Ulrich Drepper <drepper@gmail.com>
+
+ * nscd/connections.c (register_traced_file): Don't register file
+ for disabled databases.
+
2011-10-06 Ulrich Drepper <drepper@gmail.com>
* nscd/grpcache.c (cache_addgr): Initialize written in all cases.
diff --git a/nscd/connections.c b/nscd/connections.c
index 6e48869c68..7d3ff2e43b 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -891,7 +891,7 @@ cannot set socket to close on exec: %s; disabling paranoia mode"),
void
register_traced_file (size_t dbidx, struct traced_file *finfo)
{
- if (! dbs[dbidx].check_file)
+ if (! dbs[dbidx].enabled || ! dbs[dbidx].check_file)
return;
if (__builtin_expect (debug_level > 0, 0))