ruby-changes:31617
From: akr <ko1@a...>
Date: Sun, 17 Nov 2013 01:57:10 +0900 (JST)
Subject: [ruby-changes:31617] akr:r43696 (trunk): * thread_pthread.c (thread_create_core): Ditto.
akr 2013-11-17 01:57:03 +0900 (Sun, 17 Nov 2013) New Revision: 43696 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43696 Log: * thread_pthread.c (thread_create_core): Ditto. Modified files: trunk/ChangeLog trunk/thread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 43695) +++ ChangeLog (revision 43696) @@ -1,7 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 -Sun Nov 17 01:43:33 2013 Tanaka Akira <akr@f...> +Sun Nov 17 01:56:32 2013 Tanaka Akira <akr@f...> * thread_pthread.c (rb_thread_create_timer_thread): Show error message instead of error number. + (thread_create_core): Ditto. * cont.c (fiber_machine_stack_alloc): Ditto. Index: thread.c =================================================================== --- thread.c (revision 43695) +++ thread.c (revision 43696) @@ -652,7 +652,7 @@ thread_create_core(VALUE thval, VALUE ar https://github.com/ruby/ruby/blob/trunk/thread.c#L652 err = native_thread_create(th); if (err) { th->status = THREAD_KILLED; - rb_raise(rb_eThreadError, "can't create Thread (%d)", err); + rb_raise(rb_eThreadError, "can't create Thread: %s", strerror(err)); } st_insert(th->vm->living_threads, thval, (st_data_t) th->thread_id); return thval; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/