Runnables from slumberlist done to clean it up.

git-svn-id: file:///svn/unbound/trunk@411 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-06-21 08:05:16 +00:00
parent 25092accc1
commit 78c8161cf4
2 changed files with 12 additions and 5 deletions

View file

@ -224,13 +224,13 @@ run_debug(struct module_qstate* p, int d)
/** find runnable recursive */ /** find runnable recursive */
static struct module_qstate* static struct module_qstate*
find_run_in(struct module_qstate* p) find_run_in(struct module_qstate* pfirst)
{ {
struct module_qstate* q; struct module_qstate* q, *p;
for(p = p->subquery_first; p; p = p->subquery_next) { for(p = pfirst; p; p = p->subquery_next) {
if(p->ext_state[p->curmod] == module_state_initial) if(p->ext_state[p->curmod] == module_state_initial)
return p; return p;
if((q=find_run_in(p))) if((q=find_run_in(p->subquery_first)))
return q; return q;
} }
return NULL; return NULL;
@ -249,7 +249,10 @@ find_runnable(struct module_qstate* subq)
p = p->parent; p = p->parent;
if(verbosity >= VERB_ALGO) if(verbosity >= VERB_ALGO)
run_debug(p, 0); run_debug(p, 0);
return find_run_in(p); p = find_run_in(p->subquery_first);
if(p) return p;
p = find_run_in(subq->env->worker->slumber_list);
return p;
} }
/** process incoming request */ /** process incoming request */

View file

@ -1,3 +1,7 @@
21 June 2007: Wouter
- Fixup secondary buffer in case of error callback.
- cleanup slumber list of runnable states.
20 June 2007: Wouter 20 June 2007: Wouter
- new -C option to enable coredumps after forking away. - new -C option to enable coredumps after forking away.
- doc update. - doc update.