MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:September 28 2009 12:43pm
Subject:bzr commit into mysql-pe branch (magnus.blaudd:3624) Bug#42850
View as plain text  
#At file:///home/msvensson/mysql/pe/ based on revid:dao-gang.qu@strippedvaog3ml

 3624 Magnus Blåudd	2009-09-28 [merge]
      Merge bug#42850 to 'pe'

    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-20090928124223-q0uth0f5fdybqjdz.bundle
Thread
bzr commit into mysql-pe branch (magnus.blaudd:3624) Bug#42850Magnus Blåudd28 Sep