* nscd/nscd.h (prune_cache): Add fd argument to prototype. cvs/fedora-glibc-20060531T1322
authorUlrich Drepper <drepper@redhat.com>
Tue, 30 May 2006 17:32:08 +0000 (17:32 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 30 May 2006 17:32:08 +0000 (17:32 +0000)
commit902c429174f9660eaeb255695f8f335afbfdc54a
tree2cd188cbcdfd3b82be6aa3187b7755c12b607654
parentecc685684824cdbb971438ed944794d4bff4547d
* nscd/nscd.h (prune_cache): Add fd argument to prototype.

* nscd/nscd.c (parse_opt): Read response from INVALIDATE request
to make sure the database has been already invalidated.
* nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
after the cache has been invalidated.  Use pthread_mutex_lock rather
than pthread_mutex_trylock if fd != -1.
* nscd/connections.c (invalidate_cache): Add fd argument, write
response to fd if not calling prune_cache, pass fd to prune_cache.
(handle_request): Adjust invalidate_cache caller.
(nscd_run): Pass -1 as fd to prune_cache.
ChangeLog
nscd/cache.c
nscd/connections.c
nscd/nscd.c
nscd/nscd.h