Project

General

Profile

Backport #4367 » thread_kill_subclass.patch

nagachika (Tomoyuki Chikanaga), 06/09/2011 11:21 PM

View differences:

thread.c (作業コピー)
static VALUE
rb_thread_s_kill(VALUE obj, VALUE th)
{
if (CLASS_OF(th) != rb_cThread) {
if (!rb_obj_is_kind_of(th, rb_cThread)) {
rb_raise(rb_eTypeError,
"wrong argument type %s (expected Thread)",
rb_obj_classname(th));
(2-2/2)