List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:September 28 2009 1:34pm
Subject:bzr commit into mysql-5.1-telco-7.1 branch (magnus.blaudd:3036)
Bug#42805
View as plain text  
#At file:///home/msvensson/mysql/7.1/ based on revid:jonas@stripped3x1m

 3036 Magnus Blåudd	2009-09-28 [merge]
      Merge bug#42805

    modified:
      mysys/my_thr_init.c
=== modified file 'mysys/my_thr_init.c'
--- a/mysys/my_thr_init.c	2009-05-27 15:21:45 +0000
+++ b/mysys/my_thr_init.c	2009-09-28 13:32:09 +0000
@@ -107,10 +107,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-20090928133401-p3a632m95xlxjr6p.bundle
Thread
bzr commit into mysql-5.1-telco-7.1 branch (magnus.blaudd:3036)Bug#42805Magnus Blåudd28 Sep