From 2d06c4fe2df486bbfbc9cacc777b94a763736dab Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 23 Apr 2005 16:56:37 +0000 Subject: [PATCH] Freshly inserted tasks should be at head of queue and run immediately --- libraries/libldap_r/rq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5