]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
solaris thread safety of thread functions.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 23 Apr 2009 12:51:33 +0000 (12:51 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 23 Apr 2009 12:51:33 +0000 (12:51 +0000)
git-svn-id: file:///svn/unbound/trunk@1612 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
testcode/asynclook.c

index 759105bfcc2ebdb13967f65ef383955f7565dca2..cf944b9f8d2fd08803371130d4c6cee647bb2899 100644 (file)
@@ -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.
index dd7eaec4dbf603ab6c5c827803eeeb7d42cb9eb2..c203f75a2bf59e78ce698e0c7dbf2d5fa04382f6 100644 (file)
@@ -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();