[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4001) test039 back-ldap mutex unlocked by wrong thread

h.b.furuseth@usit.uio.no wrote:

>back-ldap/unbind.c:ldap_back_conn_destroy() contains the code snippet:
>  ldap_pvt_thread_mutex_trylock( &li->conn_mutex );
>  lc = avl_delete( &li->conntree, (caddr_t)&lc_curr, ldap_back_conn_cmp );
>  ldap_pvt_thread_mutex_unlock( &li->conn_mutex );
>If the trylock fails, the mutex is unlocked even though another thread
>locked it.

Sorry about that.  I'll rview the rest of the code as well, and fix this 
unless you already did.

Thanks, Ando.

    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497