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:
parent
75fbea91ac
commit
9d8c66fd6a
1 changed files with 3 additions and 2 deletions
5
cont.c
5
cont.c
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue