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

* 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
parent 27174800d4
commit 0cdfbc9446
5 changed files with 17 additions and 9 deletions

View file

@ -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>
* lib/cmath.rb (log): avoided redundant expression.

View file

@ -3,9 +3,3 @@
# 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

View file

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

View file

@ -797,7 +797,8 @@ rb_thread_create_timer_thread(void)
err = pthread_create(&timer_thread_id, &attr, thread_timer, 0);
if (err != 0) {
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_mutex_unlock(&timer_thread_lock);

View file

@ -1,5 +1,5 @@
#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_BRANCH_NAME "trunk"
@ -8,7 +8,7 @@
#define RUBY_VERSION_TEENY 1
#define RUBY_RELEASE_YEAR 2009
#define RUBY_RELEASE_MONTH 6
#define RUBY_RELEASE_DAY 7
#define RUBY_RELEASE_DAY 8
#include "ruby/version.h"