summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 22db6d9f83..076fc2aaf8 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;
}