From 81023e116de9973e4dd7f03238c096008fe9e12e Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 23 Apr 2009 12:51:33 +0000 Subject: [PATCH] solaris thread safety of thread functions. git-svn-id: file:///svn/unbound/trunk@1612 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ testcode/asynclook.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index 759105bfc..cf944b9f8 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +23 April 2009: Wouter + - fix for threadsafety in solaris thr_key_create() in tests. + 21 April 2009: Wouter - fix for build outside sourcedir. - fix for configure script swig detection. diff --git a/testcode/asynclook.c b/testcode/asynclook.c index dd7eaec4d..c203f75a2 100644 --- a/testcode/asynclook.c +++ b/testcode/asynclook.c @@ -370,6 +370,8 @@ int main(int argc, char** argv) struct lookinfo* lookups; int i, r, cancel=0, blocking=0, ext=0; + /* init log now because solaris thr_key_create() is not threadsafe */ + log_init(0,0,0); /* lock debug start (if any) */ checklock_start(); -- 2.47.3