diff options
author | jonas@eel.(none) <> | 2005-09-12 14:30:52 +0200 |
---|---|---|
committer | jonas@eel.(none) <> | 2005-09-12 14:30:52 +0200 |
commit | 40cc9e5c42b2924d25d4568994d04644e93c33da (patch) | |
tree | d6e53144714de8391771b06c482a108ab49f36eb /ndb/src | |
parent | f80e113d0e71615921c2b6b0ba66f63a60f57a82 (diff) | |
parent | f9134bd9203b91a416bdefad071b5861ce6e587b (diff) | |
download | mariadb-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.c | 10 |
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); |