mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge 5.2->5.3
- Re-commit Monty's merge, partially fixed by Igor and SergeyP, but still broken
This commit is contained in:
@@ -285,7 +285,7 @@ sig_handler process_alarm(int sig __attribute__((unused)))
|
||||
#if defined(MAIN) && !defined(__bsdi__)
|
||||
printf("thread_alarm in process_alarm\n"); fflush(stdout);
|
||||
#endif
|
||||
#ifdef DONT_REMEMBER_SIGNAL
|
||||
#ifdef SIGNAL_HANDLER_RESET_ON_DELIVERY
|
||||
my_sigset(thr_client_alarm, process_alarm); /* int. thread system calls */
|
||||
#endif
|
||||
return;
|
||||
@@ -304,7 +304,7 @@ sig_handler process_alarm(int sig __attribute__((unused)))
|
||||
#endif
|
||||
process_alarm_part2(sig);
|
||||
#ifndef USE_ALARM_THREAD
|
||||
#if defined(DONT_REMEMBER_SIGNAL) && !defined(USE_ONE_SIGNAL_HAND)
|
||||
#if defined(SIGNAL_HANDLER_RESET_ON_DELIVERY) && !defined(USE_ONE_SIGNAL_HAND)
|
||||
my_sigset(THR_SERVER_ALARM,process_alarm);
|
||||
#endif
|
||||
pthread_mutex_unlock(&LOCK_alarm);
|
||||
@@ -507,12 +507,12 @@ void thr_alarm_info(ALARM_INFO *info)
|
||||
*/
|
||||
|
||||
|
||||
static sig_handler thread_alarm(int sig)
|
||||
static sig_handler thread_alarm(int sig __attribute__((unused)))
|
||||
{
|
||||
#ifdef MAIN
|
||||
printf("thread_alarm\n"); fflush(stdout);
|
||||
#endif
|
||||
#ifdef DONT_REMEMBER_SIGNAL
|
||||
#ifdef SIGNAL_HANDLER_RESET_ON_DELIVERY
|
||||
my_sigset(sig,thread_alarm); /* int. thread system calls */
|
||||
#endif
|
||||
}
|
||||
@@ -776,6 +776,7 @@ static void *test_thread(void *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static void *signal_hand(void *arg __attribute__((unused)))
|
||||
{
|
||||
sigset_t set;
|
||||
|
||||
Reference in New Issue
Block a user