ruby-changes:11983
From: ko1 <ko1@a...>
Date: Mon, 8 Jun 2009 09:00:32 +0900 (JST)
Subject: [ruby-changes:11983] Ruby:r23647 (trunk): * thread_pthread.c (rb_thread_create_timer_thread): print fatal error
ko1 2009-06-08 08:59:58 +0900 (Mon, 08 Jun 2009) New Revision: 23647 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23647 Log: * 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. Modified files: trunk/ChangeLog trunk/KNOWNBUGS.rb trunk/bootstraptest/test_fork.rb trunk/thread_pthread.c trunk/version.h Index: ChangeLog =================================================================== --- ChangeLog (revision 23646) +++ ChangeLog (revision 23647) @@ -1,3 +1,10 @@ +Mon Jun 8 05:07:41 2009 Koichi Sasada <ko1@a...> + + * 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@d...> * lib/cmath.rb (log): avoided redundant expression. Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 23646) +++ thread_pthread.c (revision 23647) @@ -797,7 +797,8 @@ 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); Index: bootstraptest/test_fork.rb =================================================================== --- bootstraptest/test_fork.rb (revision 23646) +++ bootstraptest/test_fork.rb (revision 23647) @@ -20,3 +20,9 @@ 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 Index: KNOWNBUGS.rb =================================================================== --- KNOWNBUGS.rb (revision 23646) +++ KNOWNBUGS.rb (revision 23647) @@ -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 - Index: version.h =================================================================== --- version.h (revision 23646) +++ version.h (revision 23647) @@ -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" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/