Bug#18913935: REMOVE SUPPORT FOR LINUXTHREADS

This patch removes support for LinuxThreads.
It was superseded by NPTL in Linux 2.6 (2003).
This commit is contained in:
Jon Olav Hauglid 2014-06-12 12:35:55 +02:00 committed by Sergei Golubchik
commit 52d7980753
10 changed files with 5 additions and 374 deletions

View file

@ -321,10 +321,6 @@ static PSI_rwlock_key key_rwlock_openssl;
#endif
#endif /* HAVE_PSI_INTERFACE */
#ifdef HAVE_NPTL
volatile sig_atomic_t ld_assume_kernel_is_set= 0;
#endif
/**
Statement instrumentation key for replication.
*/
@ -2952,8 +2948,7 @@ void init_signals(void)
sa.sa_flags = 0;
sa.sa_handler = print_signal_warning;
sigaction(SIGHUP, &sa, (struct sigaction*) 0);
if (thd_lib_detected != THD_LIB_LT)
sigaddset(&set,THR_SERVER_ALARM);
sigaddset(&set,THR_SERVER_ALARM);
if (test_flags & TEST_SIGINT)
{
/* Allow SIGINT to break mysqld. This is for debugging with --gdb */
@ -5335,9 +5330,6 @@ int mysqld_main(int argc, char **argv)
if (init_early_variables())
exit(1);
#ifdef HAVE_NPTL
ld_assume_kernel_is_set= (getenv("LD_ASSUME_KERNEL") != 0);
#endif
#ifndef _WIN32
// For windows, my_init() is called from the win specific mysqld_main
if (my_init()) // init my_sys library & pthreads