List:Commits« Previous MessageNext Message »
From:Tatjana A Nuernberg Date:January 9 2008 7:59am
Subject:bk commit into 5.1 tree (tnurnberg:1.2588) BUG#21567
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of tnurnberg. When tnurnberg does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2008-01-09 08:59:12+01:00, tnurnberg@stripped +1 -0
  Bug#21567: mysqld doesn't react to Ctrl-C when run under GDB even with the --gdb option
  
  Don't block SIGINT (Control-C) when --gdb is passed to mysqld.
  Was broken at least on OS X.
  
  (kudos to Mattias Jonsson)

  sql/mysqld.cc@stripped, 2008-01-09 08:59:10+01:00, tnurnberg@stripped +1 -0
    Don't block SIGINT when TEST_SIGINT (--gdb) is used, even if
    thr_kill_signal is some other signal (SIGUSR2) and
    pthread_sigmask() in signal_hand() isn't good enough.

diff -Nrup a/sql/mysqld.cc b/sql/mysqld.cc
--- a/sql/mysqld.cc	2007-08-28 09:02:53 +02:00
+++ b/sql/mysqld.cc	2008-01-09 08:59:10 +01:00
@@ -2359,6 +2359,7 @@ static void init_signals(void)
     sigaddset(&set,THR_SERVER_ALARM);
   if (test_flags & TEST_SIGINT)
   {
+    sigdelset(&set, SIGINT);
     // May be SIGINT
     sigdelset(&set, thr_kill_signal);
   }
Thread
bk commit into 5.1 tree (tnurnberg:1.2588) BUG#21567Tatjana A Nuernberg9 Jan