MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:September 28 2009 1:07pm
Subject:bzr commit into mysql-pe branch (magnus.blaudd:3625)
View as plain text  
#At file:///home/msvensson/mysql/tmp/JmuIy4bxzU/mysql-pe/ based on revid:martin.hansson@stripped20090928124354-2gdp89kpotsf4sfe

 3625 Magnus Blåudd	2009-09-28 [merge]
      Merge

    modified:
      mysys/my_thr_init.c
=== modified file 'mysys/my_thr_init.c'
--- a/mysys/my_thr_init.c	2009-02-23 11:55:35 +0000
+++ b/mysys/my_thr_init.c	2009-09-28 12:42:23 +0000
@@ -143,10 +143,11 @@ my_bool my_thread_global_init(void)
     pthread_attr_t  dummy_thread_attr;
 
     pthread_attr_init(&dummy_thread_attr);
-    pthread_attr_setdetachstate(&dummy_thread_attr, PTHREAD_CREATE_DETACHED);
+    pthread_attr_setdetachstate(&dummy_thread_attr, PTHREAD_CREATE_JOINABLE);
 
-    pthread_create(&dummy_thread,&dummy_thread_attr,
-                   nptl_pthread_exit_hack_handler, NULL);
+    if (pthread_create(&dummy_thread,&dummy_thread_attr,
+                       nptl_pthread_exit_hack_handler, NULL) == 0)
+      (void)pthread_join(dummy_thread, NULL);
   }
 #endif /* TARGET_OS_LINUX */
 

Attachment: [text/bzr-bundle] bzr/magnus.blaudd@sun.com-20090928130727-3g18foe93ywqdycc.bundle
Thread
bzr commit into mysql-pe branch (magnus.blaudd:3625)Magnus Blåudd28 Sep