summaryrefslogtreecommitdiffstats
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
commit57124d72df0cee781c0ce5136d3f28d324e192ff (patch)
treef05f585701f122ca65443815977b218e20a7ca5e
parentae19e6ec03be9c6fca6c23dd7a6fa38d72d7a057 (diff)
downloadruby-57124d72df0cee781c0ce5136d3f28d324e192ff.tar.gz
ruby-57124d72df0cee781c0ce5136d3f28d324e192ff.tar.xz
ruby-57124d72df0cee781c0ce5136d3f28d324e192ff.zip
* eval.c (thread_timer): timer thread should not receive any signals.
submitted by Sylvain Joyeux. [ruby-core:08546] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--thread_pthread.ci5
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b305580ca..954bb406e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed May 30 04:29:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_pthread.ci (thread_timer): timer thread should not
+ receive any signals. submitted by Sylvain Joyeux.
+ [ruby-core:08546]
+
Wed May 30 04:18:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_eval_cmd): just return if no exceptions.
diff --git a/thread_pthread.ci b/thread_pthread.ci
index 43dac0be5..61ef65a47 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;