Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't unnecesarily use inotify in nscd
  • Loading branch information
Ulrich Drepper committed Oct 7, 2011
1 parent 32b6319 commit 21fd49a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions 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.
Expand Down
2 changes: 1 addition & 1 deletion nscd/connections.c
Expand Up @@ -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))
Expand Down

0 comments on commit 21fd49a

Please sign in to comment.