Child crashes when the backend is down

Dag-Erling Smørgrav des at linpro.no
Wed May 2 15:59:08 CEST 2007


"Poul-Henning Kamp" <phk at phk.freebsd.dk> writes:
> Obviously nobody else will ever check the busy flag in that case,
> so the locking isn't necessary.

HSH_Ref() and HSH_Deref() already check that o->objhead != NULL before
trying to lock the mutex, so I applied the same logic to HSH_Unbusy().
Is this a suitable fix?

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: varnish-unbusy.diff
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20070502/fd801d36/attachment-0001.ksh>


More information about the varnish-dev mailing list