List:Commits« Previous MessageNext Message »
From:Tor Didriksen Date:December 13 2010 4:17pm
Subject:bzr push into mysql-5.5-bugteam branch (tor.didriksen:3186 to 3187)
View as plain text  
 3187 Tor Didriksen	2010-12-13 [merge]
      Automerge 5.1-bugteam => 5.5-bugteam

    modified:
      dbug/dbug.c
      include/my_dbug.h
 3186 Sergey Glukhov	2010-12-13 [merge]
      5.1-bugteam->5.5-bugteam merge
     @ mysql-test/r/auto_increment.result
        5.1-bugteam->5.5-bugteam merge
     @ mysql-test/suite/innodb/r/innodb-autoinc.result
        5.1-bugteam->5.5-bugteam merge
     @ mysql-test/suite/innodb/t/innodb-autoinc.test
        5.1-bugteam->5.5-bugteam merge
     @ mysql-test/t/auto_increment.test
        5.1-bugteam->5.5-bugteam merge
     @ sql/handler.cc
        5.1-bugteam->5.5-bugteam merge

    modified:
      mysql-test/r/auto_increment.result
      mysql-test/suite/innodb/r/innodb-autoinc.result
      mysql-test/suite/innodb/t/innodb-autoinc.test
      mysql-test/t/auto_increment.test
      sql/handler.cc
=== modified file 'dbug/dbug.c'
--- a/dbug/dbug.c	2010-10-19 08:30:26 +0000
+++ b/dbug/dbug.c	2010-12-13 16:13:31 +0000
@@ -2377,6 +2377,25 @@ void _db_flush_()
 }
 
 
+#ifndef __WIN__
+void _db_suicide_()
+{
+  int retval;
+  sigset_t new_mask;
+  sigfillset(&new_mask);
+
+  fprintf(stderr, "SIGKILL myself\n");
+  fflush(stderr);
+
+  retval= kill(getpid(), SIGKILL);
+  assert(retval == 0);
+  retval= sigsuspend(&new_mask);
+  fprintf(stderr, "sigsuspend returned %d errno %d \n", retval, errno);
+  assert(FALSE); /* With full signal mask, we should never return here. */
+}
+#endif  /* ! __WIN__ */
+
+
 void _db_lock_file_()
 {
   CODE_STATE *cs;

=== modified file 'include/my_dbug.h'
--- a/include/my_dbug.h	2010-10-18 11:27:52 +0000
+++ b/include/my_dbug.h	2010-12-13 16:13:31 +0000
@@ -132,7 +132,8 @@ extern  const char* _db_get_func_(void);
 #ifdef __WIN__
 #define DBUG_SUICIDE() DBUG_ABORT()
 #else
-#define DBUG_SUICIDE() (_db_flush_(), kill(getpid(), SIGKILL), pause())
+extern void _db_suicide_();
+#define DBUG_SUICIDE() (_db_flush_(), _db_suicide_())
 #endif
 
 #else                                           /* No debugger */

No bundle (reason: useless for push emails).
Thread
bzr push into mysql-5.5-bugteam branch (tor.didriksen:3186 to 3187) Tor Didriksen13 Dec