Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
fcc20365
Commit
fcc20365
authored
Jun 07, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pilot.(none):/data/msvensson/mysql/bug28690/my51-bug28690
into pilot.(none):/data/msvensson/mysql/mysql-5.1-new-maint
parents
ca6d7124
bb0ac779
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
mysys/my_thr_init.c
mysys/my_thr_init.c
+4
-3
No files found.
mysys/my_thr_init.c
View file @
fcc20365
...
@@ -87,20 +87,21 @@ my_bool my_thread_global_init(void)
...
@@ -87,20 +87,21 @@ my_bool my_thread_global_init(void)
fprintf
(
stderr
,
"Can't initialize threads: error %d
\n
"
,
pth_ret
);
fprintf
(
stderr
,
"Can't initialize threads: error %d
\n
"
,
pth_ret
);
return
1
;
return
1
;
}
}
#ifdef NPTL_PTHREAD_EXIT_BUG
#ifdef NPTL_PTHREAD_EXIT_BUG
/*
/*
BUG#24507: Race conditions inside current NPTL pthread_exit()
BUG#24507: Race conditions inside current NPTL pthread_exit()
implementation.
implementation.
To avoid a possible segmentation fault during concurrent
To avoid a possible segmentation fault during concurrent
executions of pthread_exit(), a dummy thread is spawned which
executions of pthread_exit(), a dummy thread is spawned which
initializes internal variables of pthread lib. See bug description
initializes internal variables of pthread lib. See bug description
for a full explanation.
for a full explanation.
TODO: Remove this code when fixed versions of glibc6 are in common
TODO: Remove this code when fixed versions of glibc6 are in common
use.
use.
*/
*/
if
(
thd_lib_detected
==
THD_LIB_NPTL
)
{
{
pthread_t
dummy_thread
;
pthread_t
dummy_thread
;
pthread_attr_t
dummy_thread_attr
;
pthread_attr_t
dummy_thread_attr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment