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

* eval.c (rb_thread_start_0): should unset time_thread_alive_p.

[ruby-talk:257219], [ruby-core:11542], [ruby-dev:31253]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2007-09-07 08:16:11 +00:00
parent e90f7de04f
commit 09edb78ff0
3 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Fri Sep 7 17:06:16 2007 Vincent Isambart <vincent.isambart@gmail.com>
* 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@ruby-lang.org>
* array.c (rb_ary_subseq): need integer overflow check.

7
eval.c
View file

@ -11845,6 +11845,12 @@ rb_thread_stop_timer()
{
}
void
rb_child_atfork()
{
time_thread_alive_p = 0;
}
void
rb_thread_cancel_timer()
{
@ -11939,6 +11945,7 @@ rb_thread_start_0(fn, arg, th)
#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

View file

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