ruby-changes:1910
From: ko1@a...
Date: 7 Sep 2007 17:16:20 +0900
Subject: [ruby-changes:1910] shyouhei - Ruby:r13401 (ruby_1_8_6): * eval.c (rb_thread_start_0): should unset time_thread_alive_p.
shyouhei 2007-09-07 17:16:11 +0900 (Fri, 07 Sep 2007) New Revision: 13401 Modified files: branches/ruby_1_8_6/ChangeLog branches/ruby_1_8_6/eval.c branches/ruby_1_8_6/version.h Log: * eval.c (rb_thread_start_0): should unset time_thread_alive_p. [ruby-talk:257219], [ruby-core:11542], [ruby-dev:31253] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/ChangeLog?r1=13401&r2=13400 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/version.h?r1=13401&r2=13400 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/eval.c?r1=13401&r2=13400 Index: ruby_1_8_6/ChangeLog =================================================================== --- ruby_1_8_6/ChangeLog (revision 13400) +++ ruby_1_8_6/ChangeLog (revision 13401) @@ -1,3 +1,8 @@ +Fri Sep 7 17:06:16 2007 Vincent Isambart <vincent.isambart@g...> + + * eval.c (rb_thread_start_0): should unset time_thread_alive_p. + [ruby-talk:257219], [ruby-core:11542], [ruby-dev:31253] + Fri Sep 7 16:39:23 2007 Yukihiro Matsumoto <matz@r...> * array.c (rb_ary_subseq): need integer overflow check. Index: ruby_1_8_6/version.h =================================================================== --- ruby_1_8_6/version.h (revision 13400) +++ ruby_1_8_6/version.h (revision 13401) @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2007-09-07" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20070907 -#define RUBY_PATCHLEVEL 100 +#define RUBY_PATCHLEVEL 101 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 Index: ruby_1_8_6/eval.c =================================================================== --- ruby_1_8_6/eval.c (revision 13400) +++ ruby_1_8_6/eval.c (revision 13401) @@ -11846,6 +11846,12 @@ } void +rb_child_atfork() +{ + time_thread_alive_p = 0; +} + +void rb_thread_cancel_timer() { #ifdef _THREAD_SAFE @@ -11939,6 +11945,7 @@ #ifdef _THREAD_SAFE pthread_create(&time_thread, 0, thread_timer, 0); time_thread_alive_p = 1; + pthread_atfork(0, 0, rb_child_atfork); #else rb_thread_start_timer(); #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml