1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Portability fix

This commit is contained in:
unknown
2001-09-04 16:17:31 +03:00
parent 30774b3549
commit f736e3e1d2
2 changed files with 1 additions and 4 deletions

View File

@ -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 */

View File

@ -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
}