Commit f9848a68 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Allocate the LRU list in the child process instead of the master

process.
parent d0db0a59
......@@ -377,12 +377,15 @@ STV_open(void)
struct stevedore *stv;
VTAILQ_FOREACH(stv, &stevedores, list) {
stv->lru = LRU_Alloc();
if (stv->open != NULL)
stv->open(stv);
}
stv = stv_transient;
if (stv->open != NULL)
if (stv->open != NULL) {
stv->lru = LRU_Alloc();
stv->open(stv);
}
}
void
......@@ -477,8 +480,6 @@ STV_Config(const char *spec)
stv->ident, stv->name);
}
stv->lru = LRU_Alloc();
if (stv->init != NULL)
stv->init(stv, ac, av);
else if (ac != 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment