From 57124d72df0cee781c0ce5136d3f28d324e192ff Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 29 May 2007 19:28:25 +0000 Subject: * 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 --- thread_pthread.ci | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'thread_pthread.ci') 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; -- cgit