diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-12 04:57:39 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-12 04:57:39 +0000 |
| commit | e407f42fb8e99b3e1f6b0f360452b3f8128ae976 (patch) | |
| tree | fdfccacfb2d122fd9ac04b486aef61664555d7b3 /thread_pthread.c | |
| parent | b996b6d08ec6c72a0c858a1a4ff4c8c0e531db0c (diff) | |
| download | ruby-e407f42fb8e99b3e1f6b0f360452b3f8128ae976.tar.gz ruby-e407f42fb8e99b3e1f6b0f360452b3f8128ae976.tar.xz ruby-e407f42fb8e99b3e1f6b0f360452b3f8128ae976.zip | |
* thread.c (thread_create_core): moved failure handling from
native_thread_core().
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
| -rw-r--r-- | thread_pthread.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 22db6d9f8..076fc2aaf 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -509,11 +509,6 @@ native_thread_create(rb_thread_t *th) if (!err) { pthread_cond_init(&th->native_thread_data.sleep_cond, 0); } - else { - st_delete_wrap(th->vm->living_threads, th->self); - th->status = THREAD_KILLED; - rb_raise(rb_eThreadError, "can't create Thread (%d)", err); - } } return err; } |
