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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e108cc77
Commit
e108cc77
authored
Sep 04, 2001
by
monty@tik.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability fix
parent
b0a0c542
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
include/my_pthread.h
include/my_pthread.h
+1
-0
sql/mysqld.cc
sql/mysqld.cc
+0
-4
No files found.
include/my_pthread.h
View file @
e108cc77
...
@@ -146,6 +146,7 @@ int pthread_mutex_destroy (pthread_mutex_t *);
...
@@ -146,6 +146,7 @@ int pthread_mutex_destroy (pthread_mutex_t *);
#define pthread_mutex_destroy(A) DeleteCriticalSection(A)
#define pthread_mutex_destroy(A) DeleteCriticalSection(A)
#define my_pthread_setprio(A,B) SetThreadPriority(GetCurrentThread(), (B))
#define my_pthread_setprio(A,B) SetThreadPriority(GetCurrentThread(), (B))
#define pthread_kill(A,B) pthread_dummy(0)
#define pthread_kill(A,B) pthread_dummy(0)
#define pthread_exit(A) pthread_dummy()
#endif
/* OS2 */
#endif
/* OS2 */
/* Dummy defines for easier code */
/* Dummy defines for easier code */
...
...
sql/mysqld.cc
View file @
e108cc77
...
@@ -634,9 +634,7 @@ static void __cdecl kill_server(int sig_ptr)
...
@@ -634,9 +634,7 @@ static void __cdecl kill_server(int sig_ptr)
unireg_abort
(
1
);
/* purecov: inspected */
unireg_abort
(
1
);
/* purecov: inspected */
else
else
unireg_end
(
0
);
unireg_end
(
0
);
#ifndef OS2
pthread_exit
(
0
);
/* purecov: deadcode */
pthread_exit
(
0
);
/* purecov: deadcode */
#endif
RETURN_FROM_KILL_SERVER
;
RETURN_FROM_KILL_SERVER
;
}
}
...
@@ -668,9 +666,7 @@ static sig_handler print_signal_warning(int sig)
...
@@ -668,9 +666,7 @@ static sig_handler print_signal_warning(int sig)
void
unireg_end
(
int
signal_number
__attribute__
((
unused
)))
void
unireg_end
(
int
signal_number
__attribute__
((
unused
)))
{
{
clean_up
();
clean_up
();
#ifndef OS2
pthread_exit
(
0
);
// Exit is in main thread
pthread_exit
(
0
);
// Exit is in main thread
#endif
}
}
...
...
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