mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Merge ssh://bk-internal.mysql.com//home/bk/mysql-5.1-opt
into kaamos.(none):/data/src/opt/mysql-5.1-opt
This commit is contained in:
commit
8fe44ccb79
1 changed files with 3 additions and 5 deletions
|
@ -2326,10 +2326,6 @@ static void init_signals(void)
|
|||
struct sigaction sa;
|
||||
DBUG_ENTER("init_signals");
|
||||
|
||||
if (test_flags & TEST_SIGINT)
|
||||
{
|
||||
my_sigset(thr_kill_signal, end_thread_signal);
|
||||
}
|
||||
my_sigset(THR_SERVER_ALARM,print_signal_warning); // Should never be called!
|
||||
|
||||
if (!(test_flags & TEST_NO_STACKTRACE) || (test_flags & TEST_CORE_ON_SIGNAL))
|
||||
|
@ -2366,7 +2362,6 @@ static void init_signals(void)
|
|||
(void) sigemptyset(&set);
|
||||
my_sigset(SIGPIPE,SIG_IGN);
|
||||
sigaddset(&set,SIGPIPE);
|
||||
sigaddset(&set,SIGINT);
|
||||
#ifndef IGNORE_SIGHUP_SIGQUIT
|
||||
sigaddset(&set,SIGQUIT);
|
||||
sigaddset(&set,SIGHUP);
|
||||
|
@ -2388,9 +2383,12 @@ static void init_signals(void)
|
|||
sigaddset(&set,THR_SERVER_ALARM);
|
||||
if (test_flags & TEST_SIGINT)
|
||||
{
|
||||
my_sigset(thr_kill_signal, end_thread_signal);
|
||||
// May be SIGINT
|
||||
sigdelset(&set, thr_kill_signal);
|
||||
}
|
||||
else
|
||||
sigaddset(&set,SIGINT);
|
||||
sigprocmask(SIG_SETMASK,&set,NULL);
|
||||
pthread_sigmask(SIG_SETMASK,&set,NULL);
|
||||
DBUG_VOID_RETURN;
|
||||
|
|
Loading…
Reference in a new issue