From d854e2b276a0565715c935c893ed5c03565b8c3f Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 11 Nov 2008 13:43:01 +0000 Subject: [PATCH] Remember to set lock "held" in CondWait git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3385 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_lck.c | 1 + 1 file changed, 1 insertion(+) 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(); } -- 2.39.5