From: phk Date: Tue, 11 Nov 2008 13:43:01 +0000 (+0000) Subject: Remember to set lock "held" in CondWait X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d854e2b276a0565715c935c893ed5c03565b8c3f;p=varnish Remember to set lock "held" in CondWait git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3385 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_lck.c b/varnish-cache/bin/varnishd/cache_lck.c index 64c309b4..38d49eaf 100644 --- a/varnish-cache/bin/varnishd/cache_lck.c +++ b/varnish-cache/bin/varnishd/cache_lck.c @@ -149,6 +149,7 @@ Lck_CondWait(pthread_cond_t *cond, struct lock *lck) ilck->held = 0; AZ(pthread_cond_wait(cond, &ilck->mtx)); AZ(ilck->held); + ilck->held = 1; ilck->owner = pthread_self(); }