Backport #4367 » thread_kill_subclass.patch
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));
|
- « Previous
- 1
- 2
- Next »