Freshly inserted tasks should be at head of queue and run immediately

This commit is contained in:
Howard Chu 2005-04-23 16:56:37 +00:00
parent 5639c07137
commit 2d06c4fe2d

View File

@ -55,7 +55,7 @@ ldap_pvt_runqueue_insert(
entry->arg = arg; entry->arg = arg;
entry->tname = tname; entry->tname = tname;
entry->tspec = tspec; entry->tspec = tspec;
LDAP_STAILQ_INSERT_TAIL( &rq->task_list, entry, tnext ); LDAP_STAILQ_INSERT_HEAD( &rq->task_list, entry, tnext );
} }
return entry; return entry;
} }