List:Commits« Previous MessageNext Message »
From:Sergei Golubchik Date:March 23 2007 11:50am
Subject:bk commit into 4.1 tree (serg:1.2624)
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of serg. When serg 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, 2007-03-23 13:50:02+02:00, serg@stripped +2 -0
  Merge bk-internal.mysql.com:/home/bk/mysql-4.1
  into  sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.1
  MERGE: 1.2599.1.1

  mysys/thr_alarm.c@stripped, 2007-03-23 13:45:03+02:00, serg@stripped +0 -0
    Auto merged
    MERGE: 1.48.1.1

  sql/mysqld.cc@stripped, 2007-03-23 13:50:01+02:00, serg@stripped +0 -3
    merged
    MERGE: 1.623.3.1

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	serg
# Host:	sergbook.mysql.com
# Root:	/usr/home/serg/Abk/mysql-4.1/RESYNC

--- 1.50/mysys/thr_alarm.c	2007-03-23 13:50:07 +02:00
+++ 1.51/mysys/thr_alarm.c	2007-03-23 13:50:07 +02:00
@@ -78,10 +78,6 @@
   sigfillset(&full_signal_set);			/* Neaded to block signals */
   pthread_mutex_init(&LOCK_alarm,MY_MUTEX_INIT_FAST);
   pthread_cond_init(&COND_alarm,NULL);
-  if (thd_lib_detected == THD_LIB_LT)
-    thr_client_alarm= SIGALRM;
-  else
-    thr_client_alarm= SIGUSR1;
 #ifndef USE_ALARM_THREAD
   if (thd_lib_detected != THD_LIB_LT)
 #endif

--- 1.628/sql/mysqld.cc	2007-03-23 13:50:07 +02:00
+++ 1.629/sql/mysqld.cc	2007-03-23 13:50:07 +02:00
@@ -2062,6 +2062,17 @@
   struct sigaction sa;
   DBUG_ENTER("init_signals");
 
+  if (thd_lib_detected == THD_LIB_LT)
+  {
+    thr_client_alarm= SIGALRM;
+    thr_kill_signal= SIGINT;
+  }
+  else
+  {
+    thr_client_alarm= SIGUSR1;
+    thr_kill_signal= SIGUSR2;
+  }
+
   if (test_flags & TEST_SIGINT)
   {
     my_sigset(thr_kill_signal, end_thread_signal);
@@ -3155,13 +3166,6 @@
   DEBUGGER_OFF;
 
   MY_INIT(argv[0]);		// init my_sys library & pthreads
-
-  /* Set signal used to kill MySQL */
-#if defined(SIGUSR2)
-  thr_kill_signal= thd_lib_detected == THD_LIB_LT ? SIGINT : SIGUSR2;
-#else
-  thr_kill_signal= SIGINT;
-#endif
 
 #ifdef _CUSTOMSTARTUPCONFIG_
   if (_cust_check_startup())
Thread
bk commit into 4.1 tree (serg:1.2624)Sergei Golubchik23 Mar