MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:September 28 2009 12:41pm
Subject:bzr commit into mysql-5.1-bugteam branch (magnus.blaudd:3139) Bug#42850
View as plain text  
#At file:///home/msvensson/mysql/5.1-bugteam/ based on revid:li-bing.song@stripped-v40rklb7g178tjza

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

    modified:
      mysys/my_thr_init.c
=== modified file 'mysys/my_thr_init.c'
--- a/mysys/my_thr_init.c	2008-12-04 18:41:53 +0000
+++ b/mysys/my_thr_init.c	2009-09-28 12:40:45 +0000
@@ -108,10 +108,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-20090928124045-8qdtqppuixpoq99v.bundle
Thread
bzr commit into mysql-5.1-bugteam branch (magnus.blaudd:3139) Bug#42850Magnus Blåudd28 Sep