1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rb_fiber_terminate never returns

This commit is contained in:
Nobuyoshi Nakada 2021-02-24 03:37:22 +09:00
parent 75fbea91ac
commit 9d8c66fd6a
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

5
cont.c
View file

@ -2005,7 +2005,7 @@ rb_fiber_set_scheduler(VALUE klass, VALUE scheduler)
return rb_fiber_scheduler_set(scheduler);
}
static void rb_fiber_terminate(rb_fiber_t *fiber, int need_interrupt, VALUE err);
NORETURN(static void rb_fiber_terminate(rb_fiber_t *fiber, int need_interrupt, VALUE err));
void
rb_fiber_start(void)
@ -2047,7 +2047,8 @@ rb_fiber_start(void)
if (state == TAG_RAISE) {
// noop...
} else if (state == TAG_FATAL) {
}
else if (state == TAG_FATAL) {
rb_threadptr_pending_interrupt_enque(th, err);
}
else {