aboutsummaryrefslogtreecommitdiff
path: root/nscd/connections.c
diff options
context:
space:
mode:
Diffstat (limited to 'nscd/connections.c')
-rw-r--r--nscd/connections.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index 552d554..2ca6f69 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -770,6 +770,9 @@ nscd_run (void *p)
time_t next_prune = run_prune ? time (NULL) + CACHE_PRUNE_INTERVAL : 0;
static unsigned long int nready;
+ if (my_number < lastdb)
+ setup_thread (&dbs[my_number]);
+
conn.fd = sock;
conn.events = POLLRDNORM;