1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2007-05-29 19:28:25 +00:00
parent 87e215b55d
commit 682a52e61c
2 changed files with 11 additions and 0 deletions

View file

@ -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.

View file

@ -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;