diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2022-11-08 13:35:37 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2022-11-09 12:25:35 +0900 |
commit | c3de7a3c58bf9a138ff8720ed56c0045d2b8e01d (patch) | |
tree | fa94950f00752f88d9284d5fc34071251168b514 /thread.c | |
parent | 558137d5f3b77294949bd042bb99ae12d37faa2f (diff) | |
download | ruby-c3de7a3c58bf9a138ff8720ed56c0045d2b8e01d.tar.gz |
Make pending_interrupt?(Exception) work
A patch from katsu (Katsuhiro Ueno)
[Bug #19110]
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1922,7 +1922,7 @@ rb_threadptr_pending_interrupt_include_p(rb_thread_t *th, VALUE err) int i; for (i=0; i<RARRAY_LEN(th->pending_interrupt_queue); i++) { VALUE e = RARRAY_AREF(th->pending_interrupt_queue, i); - if (rb_class_inherited_p(e, err)) { + if (rb_obj_is_kind_of(e, err)) { return TRUE; } } |