[master] 20f9078 Interesting: on FreeBSD uninitialized pthread keys default to the first one created. I would have skipped #0 if it was me...
Poul-Henning Kamp
phk at varnish-cache.org
Tue May 14 11:48:17 CEST 2013
commit 20f90789d4cb002260fb3e7341dd172abc68366f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue May 14 09:47:05 2013 +0000
Interesting: on FreeBSD uninitialized pthread keys default to the
first one created. I would have skipped #0 if it was me...
diff --git a/bin/varnishd/cache/cache_main.c b/bin/varnishd/cache/cache_main.c
index 0aaf8b9..fbbfd2d 100644
--- a/bin/varnishd/cache/cache_main.c
+++ b/bin/varnishd/cache/cache_main.c
@@ -195,6 +195,7 @@ child_main(void)
cache_param = heritage.param;
AZ(pthread_key_create(&req_key, NULL));
+ AZ(pthread_key_create(&bo_key, NULL));
AZ(pthread_key_create(&name_key, NULL));
THR_SetName("cache-main");
More information about the varnish-commit
mailing list