r3385 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Nov 11 14:43:01 CET 2008


Author: phk
Date: 2008-11-11 14:43:01 +0100 (Tue, 11 Nov 2008)
New Revision: 3385

Modified:
   trunk/varnish-cache/bin/varnishd/cache_lck.c
Log:
Remember to set lock "held" in CondWait



Modified: trunk/varnish-cache/bin/varnishd/cache_lck.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_lck.c	2008-11-11 13:38:09 UTC (rev 3384)
+++ trunk/varnish-cache/bin/varnishd/cache_lck.c	2008-11-11 13:43:01 UTC (rev 3385)
@@ -149,6 +149,7 @@
 	ilck->held = 0;
 	AZ(pthread_cond_wait(cond, &ilck->mtx));
 	AZ(ilck->held);
+	ilck->held = 1;
 	ilck->owner = pthread_self();
 }
 




More information about the varnish-commit mailing list