From: Date: September 7 2005 2:04pm Subject: bk commit into 4.1 tree (jonas:1.2411) BUG#11623 List-Archive: http://lists.mysql.com/internals/29422 X-Bug: 11623 Message-Id: <20050907120442.0347425646B@eel> Below is the list of changes that have just been committed into a local 4.1 repository of jonas. When jonas 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 1.2411 05/09/07 14:04:36 jonas@eel.(none) +1 -0 ndb - bug#11623 - "ndb become inresponsive but did not really die" block signals in threads making main process get all signals... ndb/src/common/portlib/NdbThread.c 1.23 05/09/07 14:04:33 jonas@eel.(none) +10 -0 ndb - bug#11623 - "ndb become inresponsive but did not really die" block signals in threads making main process get all signals... # 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: jonas # Host: eel.(none) # Root: /home/jonas/src/mysql-4.1 --- 1.22/ndb/src/common/portlib/NdbThread.c 2005-08-03 13:46:30 +02:00 +++ 1.23/ndb/src/common/portlib/NdbThread.c 2005-09-07 14:04:33 +02:00 @@ -53,6 +53,16 @@ } #endif { + /** + * Block all signals to thread by default + * let them go to main process instead + */ + sigset_t mask; + sigfillset(&mask); + pthread_sigmask(SIG_BLOCK, &mask, 0); + } + + { void *ret; struct NdbThread * ss = (struct NdbThread *)_ss; ret= (* ss->func)(ss->object);