summaryrefslogtreecommitdiff
path: root/thread_pthread.ci
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-29 19:28:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-29 19:28:25 +0000
commit682a52e61cbc7ca5674e5bb546621b78fe4f7ab9 (patch)
treef05f585701f122ca65443815977b218e20a7ca5e /thread_pthread.ci
parent87e215b55db9c387090264c4d9497f31a00c803c (diff)
* eval.c (thread_timer): timer thread should not receive any signals.
submitted by Sylvain Joyeux. [ruby-core:08546] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.ci')
-rw-r--r--thread_pthread.ci5
1 files changed, 5 insertions, 0 deletions
diff --git a/thread_pthread.ci b/thread_pthread.ci
index 43dac0be5a..61ef65a478 100644
--- a/thread_pthread.ci
+++ b/thread_pthread.ci
@@ -462,6 +462,11 @@ static void timer_thread_function(void);
static void *
thread_timer(void *dummy)
{
+ sigset_t all_signals;
+
+ sigfillset(&all_signals);
+ pthread_sigmask(SIG_BLOCK, &all_signals, 0);
+
while (system_working) {
#ifdef HAVE_NANOSLEEP
struct timespec req, rem;