diff options
author | unknown <msvensson@pilot.(none)> | 2007-06-07 09:50:53 +0200 |
---|---|---|
committer | unknown <msvensson@pilot.(none)> | 2007-06-07 09:50:53 +0200 |
commit | bb0ac77971e7cfc121fa64753f37f9bbc08efa8e (patch) | |
tree | 7c0cb8dd4f4cb2c8bef605c0c53b0cb36d5b2057 /mysys | |
parent | 288a7fc0c9f145f1d27c0b2bd101f61c54c1d4c1 (diff) | |
parent | bfb7b5690185c025548d076af5077cb2f5ab573c (diff) | |
download | mariadb-git-bb0ac77971e7cfc121fa64753f37f9bbc08efa8e.tar.gz |
Merge pilot.(none):/data/msvensson/mysql/bug28690/my50-bug28690
into pilot.(none):/data/msvensson/mysql/bug28690/my51-bug28690
mysys/my_thr_init.c:
Merge 5.0->5.1
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_thr_init.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mysys/my_thr_init.c b/mysys/my_thr_init.c index 79a28ef04b0..cc33ac3f21c 100644 --- a/mysys/my_thr_init.c +++ b/mysys/my_thr_init.c @@ -87,20 +87,21 @@ my_bool my_thread_global_init(void) fprintf(stderr,"Can't initialize threads: error %d\n", pth_ret); return 1; } - + #ifdef NPTL_PTHREAD_EXIT_BUG /* - BUG#24507: Race conditions inside current NPTL pthread_exit() + BUG#24507: Race conditions inside current NPTL pthread_exit() implementation. To avoid a possible segmentation fault during concurrent executions of pthread_exit(), a dummy thread is spawned which initializes internal variables of pthread lib. See bug description for a full explanation. - + TODO: Remove this code when fixed versions of glibc6 are in common use. */ + if (thd_lib_detected == THD_LIB_NPTL) { pthread_t dummy_thread; pthread_attr_t dummy_thread_attr; |