* thread_pthread.c (rb_thread_create_timer_thread): print fatal error

message to stderr instead of using rb_bug().
* KNOWNBUGS.rb, bootstraptest/test_fork.rb: move a fixed test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2009-06-07 23:59:58 +00:00
Родитель 27174800d4
Коммит 0cdfbc9446
5 изменённых файлов: 17 добавлений и 9 удалений

Просмотреть файл

@ -1,3 +1,10 @@
Mon Jun 8 05:07:41 2009 Koichi Sasada <ko1@atdot.net>
* thread_pthread.c (rb_thread_create_timer_thread): print fatal error
message to stderr instead of using rb_bug().
* KNOWNBUGS.rb, bootstraptest/test_fork.rb: move a fixed test.
Sun Jun 7 22:44:20 2009 Tadayoshi Funaba <tadf@dotrb.org> Sun Jun 7 22:44:20 2009 Tadayoshi Funaba <tadf@dotrb.org>
* lib/cmath.rb (log): avoided redundant expression. * lib/cmath.rb (log): avoided redundant expression.

Просмотреть файл

@ -3,9 +3,3 @@
# So all tests will cause failure. # So all tests will cause failure.
# #
assert_normal_exit(<<'End', '[ruby-dev:37934]')
Thread.new { sleep 1; Thread.kill Thread.main }
Process.setrlimit(:NPROC, 1)
fork {}
End

Просмотреть файл

@ -20,3 +20,9 @@ assert_finish 10, %q{
rescue NotImplementedError rescue NotImplementedError
end end
}, '[ruby-core:22158]' }, '[ruby-core:22158]'
assert_normal_exit(<<'End', '[ruby-dev:37934]')
Thread.new { sleep 1; Thread.kill Thread.main }
Process.setrlimit(:NPROC, 1)
fork {}
End

Просмотреть файл

@ -797,7 +797,8 @@ rb_thread_create_timer_thread(void)
err = pthread_create(&timer_thread_id, &attr, thread_timer, 0); err = pthread_create(&timer_thread_id, &attr, thread_timer, 0);
if (err != 0) { if (err != 0) {
native_mutex_unlock(&timer_thread_lock); native_mutex_unlock(&timer_thread_lock);
rb_bug("rb_thread_create_timer_thread: return non-zero (%d)", err); fprintf(stderr, "[FATAL] Failed to create timer thread (errno: %d)\n", err);
exit(EXIT_FAILURE);
} }
native_cond_wait(&timer_thread_cond, &timer_thread_lock); native_cond_wait(&timer_thread_cond, &timer_thread_lock);
native_mutex_unlock(&timer_thread_lock); native_mutex_unlock(&timer_thread_lock);

Просмотреть файл

@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.2" #define RUBY_VERSION "1.9.2"
#define RUBY_RELEASE_DATE "2009-06-07" #define RUBY_RELEASE_DATE "2009-06-08"
#define RUBY_PATCHLEVEL -1 #define RUBY_PATCHLEVEL -1
#define RUBY_BRANCH_NAME "trunk" #define RUBY_BRANCH_NAME "trunk"
@ -8,7 +8,7 @@
#define RUBY_VERSION_TEENY 1 #define RUBY_VERSION_TEENY 1
#define RUBY_RELEASE_YEAR 2009 #define RUBY_RELEASE_YEAR 2009
#define RUBY_RELEASE_MONTH 6 #define RUBY_RELEASE_MONTH 6
#define RUBY_RELEASE_DAY 7 #define RUBY_RELEASE_DAY 8
#include "ruby/version.h" #include "ruby/version.h"