]> sourceware.org Git - glibc.git/commitdiff
Don't unnecesarily use inotify in nscd
authorUlrich Drepper <drepper@gmail.com>
Fri, 7 Oct 2011 05:20:53 +0000 (01:20 -0400)
committerUlrich Drepper <drepper@gmail.com>
Fri, 7 Oct 2011 05:20:53 +0000 (01:20 -0400)
ChangeLog
nscd/connections.c

index 6ad0e1aeaa89819f99b9fe11610c25c306c68905..edd2728500466b7504243f3e684ffff1c25fae2d 100644 (file)
--- 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.
index 6e48869c68df49da3754b8709a3be08c50cd29e8..7d3ff2e43b4c2439ce8e3e17a0e5399e6eee9c76 100644 (file)
@@ -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))
This page took 0.044772 seconds and 5 git commands to generate.