mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-12 16:20:06 +00:00
ffb1b88282
when the lookup call failed. * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock. Add prune_cond and wakeup_time. (CACHE_PRUNE_INTERNAL): Define. Update declarations of prune_cache and setup_thread. * nscd/connections.c (dbs): Update initializers. (CACHE_PRUNE_INTERNAL): Moved to nscd.h. (nscd_init): Default number of threads is now 4. (invalidate_cache): Take lock before calling prune_cache. (handle_request): If SELinux forbids the request, say so. (readylist_cond): Use static initializer. (nscd_run_prune): New function. Used only by pruning threads. (nscd_run_worder): Renamed from nscd_run. Remove support for pruning here. (fd_ready): Update nscd_run reference. (start_threads): No need to initialize readylist_cond. Start pruning threads separately. * nscd/nscd_setup_thread.c: Change return value type to int and always return 0. * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type to int and return nonzero value if we can use the TID address hack. * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for the database is later than the new entry's timeout, update the wakeup time and wake the cleanup thread. (prune_cache): Return seconds the next entry in the database is still valid. Remove locking for pruning here. * nscd/nscd.conf: Document default number of threads. |
||
---|---|---|
.. | ||
aicache.c | ||
cache.c | ||
connections.c | ||
dbg_log.c | ||
dbg_log.h | ||
Depend | ||
gai.c | ||
getgrgid_r.c | ||
getgrnam_r.c | ||
gethstbyad_r.c | ||
gethstbynm3_r.c | ||
getpwnam_r.c | ||
getpwuid_r.c | ||
getsrvbynm_r.c | ||
getsrvbypt_r.c | ||
grpcache.c | ||
hstcache.c | ||
initgrcache.c | ||
Makefile | ||
mem.c | ||
nscd_conf.c | ||
nscd_getai.c | ||
nscd_getgr_r.c | ||
nscd_gethst_r.c | ||
nscd_getpw_r.c | ||
nscd_getserv_r.c | ||
nscd_helper.c | ||
nscd_initgroups.c | ||
nscd_proto.h | ||
nscd_setup_thread.c | ||
nscd_stat.c | ||
nscd-client.h | ||
nscd.c | ||
nscd.conf | ||
nscd.h | ||
nscd.init | ||
pwdcache.c | ||
res_hconf.c | ||
selinux.c | ||
selinux.h | ||
servicescache.c |