Project

General

Profile

Backport #4367 » thread_kill_subclass.patch

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

View differences:

thread.c (作業コピー)
1509 1509
static VALUE
1510 1510
rb_thread_s_kill(VALUE obj, VALUE th)
1511 1511
{
1512
    if (CLASS_OF(th) != rb_cThread) {
1512
    if (!rb_obj_is_kind_of(th, rb_cThread)) {
1513 1513
        rb_raise(rb_eTypeError, 
1514 1514
                "wrong argument type %s (expected Thread)",
1515 1515
                rb_obj_classname(th));