summaryrefslogtreecommitdiff
path: root/ndb/src
diff options
context:
space:
mode:
authorunknown <jonas@eel.(none)>2005-09-10 01:50:38 +0200
committerunknown <jonas@eel.(none)>2005-09-10 01:50:38 +0200
commit513269e7f232dc7b0c9c4ac4eba7c1f1ec6dddc5 (patch)
treee34b13a0affba42404e255904718fbab2ab56985 /ndb/src
parentfbfb8ed6130d5d20fc13eba012c71fb70e5c5fdc (diff)
parent4344f602cee4cc4abb33708c5ee6227df7c622cf (diff)
downloadmariadb-git-513269e7f232dc7b0c9c4ac4eba7c1f1ec6dddc5.tar.gz
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.0
into eel.(none):/home/jonas/src/mysql-5.0-push
Diffstat (limited to 'ndb/src')
-rw-r--r--ndb/src/common/portlib/NdbThread.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ndb/src/common/portlib/NdbThread.c b/ndb/src/common/portlib/NdbThread.c
index 55ebc4c8111..48d00956ec2 100644
--- a/ndb/src/common/portlib/NdbThread.c
+++ b/ndb/src/common/portlib/NdbThread.c
@@ -53,6 +53,16 @@ ndb_thread_wrapper(void* _ss){
}
#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);