about summary refs log tree commit diff
path: root/nscd/nscd.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-12-09 05:24:37 +0000
committerUlrich Drepper <drepper@redhat.com>2008-12-09 05:24:37 +0000
commitcd72adebda1a008550de05cfcc669b90c36bc438 (patch)
tree59af644e7c3c9fbfa5bdf81ea78015509f4be6ea /nscd/nscd.h
parent5e37840c5c1263c71cbc4d35af636df351c0433e (diff)
downloadglibc-cd72adebda1a008550de05cfcc669b90c36bc438.tar.gz
glibc-cd72adebda1a008550de05cfcc669b90c36bc438.tar.xz
glibc-cd72adebda1a008550de05cfcc669b90c36bc438.zip
[BZ #7067]
2008-12-03  Petr Baudis  <pasky@suse.cz>
	[BZ #7067]
	* nscd/connections.c (invalidate_cache): Use prune_run_lock
	instead of prune_lock.
	(nscd_run_prune): Before calling prune_cache, take prune_run_lock.
	* nscd/nscd.h (database_dyn): Add prune_run_cache.
Diffstat (limited to 'nscd/nscd.h')
-rw-r--r--nscd/nscd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nscd/nscd.h b/nscd/nscd.h
index 5c77dd3c41..2d77bab989 100644
--- a/nscd/nscd.h
+++ b/nscd/nscd.h
@@ -69,6 +69,7 @@ struct database_dyn
   pthread_rwlock_t lock;
   pthread_cond_t prune_cond;
   pthread_mutex_t prune_lock;
+  pthread_mutex_t prune_run_lock;
   time_t wakeup_time;
 
   int enabled;