MySQL Lists are EOL. Please join:

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

 3069 Magnus Blåudd	2009-09-28 [merge]
      Merge bug#42850 to 6.3

    modified:
      mysys/my_thr_init.c
=== modified file 'mysys/my_thr_init.c'
--- a/mysys/my_thr_init.c	2009-05-26 18:53:34 +0000
+++ b/mysys/my_thr_init.c	2009-09-28 12:48:14 +0000
@@ -111,10 +111,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-20090928132630-l2wqa13bt8feivpa.bundle
Thread
bzr commit into mysql-5.1-telco-6.3 branch (magnus.blaudd:3069)Bug#42850Magnus Blåudd28 Sep