]> err.no Git - varnish/commitdiff
Remember to set lock "held" in CondWait
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 11 Nov 2008 13:43:01 +0000 (13:43 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 11 Nov 2008 13:43:01 +0000 (13:43 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3385 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_lck.c

index 64c309b4e5c5f56ff378344c0807f55923b29ace..38d49eaf6ffc492e47caef5e0216edd1fa5fbf35 100644 (file)
@@ -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();
 }