зеркало из https://github.com/github/ruby.git
* thread_pthread.c (thread_create_core): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
bfce3d10d7
Коммит
b01b199052
|
@ -1,7 +1,8 @@
|
|||
Sun Nov 17 01:43:33 2013 Tanaka Akira <akr@fsij.org>
|
||||
Sun Nov 17 01:56:32 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* 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.
|
||||
|
||||
|
|
2
thread.c
2
thread.c
|
@ -652,7 +652,7 @@ thread_create_core(VALUE thval, VALUE args, VALUE (*fn)(ANYARGS))
|
|||
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче