diff options
author | monty@tik.mysql.fi <> | 2001-09-04 16:17:31 +0300 |
---|---|---|
committer | monty@tik.mysql.fi <> | 2001-09-04 16:17:31 +0300 |
commit | e108cc775d086b87cf5b70f20c9a0818c92356fb (patch) | |
tree | c653dbc3fd65d1a1913a422290369a97d6a62004 | |
parent | b0a0c54257178c4b7348bc0075556ee9a4697726 (diff) | |
download | mariadb-git-e108cc775d086b87cf5b70f20c9a0818c92356fb.tar.gz |
Portability fix
-rw-r--r-- | include/my_pthread.h | 1 | ||||
-rw-r--r-- | sql/mysqld.cc | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h index 79baa7a53e3..c2c671ae28a 100644 --- a/include/my_pthread.h +++ b/include/my_pthread.h @@ -146,6 +146,7 @@ int pthread_mutex_destroy (pthread_mutex_t *); #define pthread_mutex_destroy(A) DeleteCriticalSection(A) #define my_pthread_setprio(A,B) SetThreadPriority(GetCurrentThread(), (B)) #define pthread_kill(A,B) pthread_dummy(0) +#define pthread_exit(A) pthread_dummy() #endif /* OS2 */ /* Dummy defines for easier code */ diff --git a/sql/mysqld.cc b/sql/mysqld.cc index b484eee3480..cd532ac0f24 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -634,9 +634,7 @@ static void __cdecl kill_server(int sig_ptr) unireg_abort(1); /* purecov: inspected */ else unireg_end(0); -#ifndef OS2 pthread_exit(0); /* purecov: deadcode */ -#endif RETURN_FROM_KILL_SERVER; } @@ -668,9 +666,7 @@ static sig_handler print_signal_warning(int sig) void unireg_end(int signal_number __attribute__((unused))) { clean_up(); -#ifndef OS2 pthread_exit(0); // Exit is in main thread -#endif } |