summaryrefslogtreecommitdiff
path: root/ndb/src
diff options
context:
space:
mode:
authorjonas@eel.(none) <>2005-09-12 14:30:52 +0200
committerjonas@eel.(none) <>2005-09-12 14:30:52 +0200
commit40cc9e5c42b2924d25d4568994d04644e93c33da (patch)
treed6e53144714de8391771b06c482a108ab49f36eb /ndb/src
parentf80e113d0e71615921c2b6b0ba66f63a60f57a82 (diff)
parentf9134bd9203b91a416bdefad071b5861ce6e587b (diff)
downloadmariadb-git-40cc9e5c42b2924d25d4568994d04644e93c33da.tar.gz
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1
into eel.(none):/home/jonas/src/mysql-4.1-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);