From: Howard Chu Date: Sat, 23 Apr 2005 16:56:37 +0000 (+0000) Subject: Freshly inserted tasks should be at head of queue and run immediately X-Git-Tag: OPENLDAP_AC_BP~812 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d06c4fe2df486bbfbc9cacc777b94a763736dab;p=openldap Freshly inserted tasks should be at head of queue and run immediately --- diff --git a/libraries/libldap_r/rq.c b/libraries/libldap_r/rq.c index 99daef6ca1..7b775f61f1 100644 --- a/libraries/libldap_r/rq.c +++ b/libraries/libldap_r/rq.c @@ -55,7 +55,7 @@ ldap_pvt_runqueue_insert( entry->arg = arg; entry->tname = tname; entry->tspec = tspec; - LDAP_STAILQ_INSERT_TAIL( &rq->task_list, entry, tnext ); + LDAP_STAILQ_INSERT_HEAD( &rq->task_list, entry, tnext ); } return entry; }