From: Wouter Wijngaards Date: Thu, 23 Apr 2009 12:51:33 +0000 (+0000) Subject: solaris thread safety of thread functions. X-Git-Tag: release-1.3.0~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81023e116de9973e4dd7f03238c096008fe9e12e;p=thirdparty%2Funbound.git solaris thread safety of thread functions. git-svn-id: file:///svn/unbound/trunk@1612 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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();