mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Assuming EXIT_SUCCESS equals 0 is not portable --- test/ruby/test_fiber.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) `rb_fiber_terminate` must not return [Bug #18497] In a forked process from a fiber, the fiber becomes the only fiber, `fiber_switch` does nothing as there is no other fibers, `rb_fiber_terminate` does not terminate the fiber. In that case, reaches the end of `fiber_entry` finaly, which is declared as "COROUTINE" and should never return. --- cont.c | 3 ++- eval_intern.h | 2 +- test/fiber/test_process.rb | 15 +++++++++++++++ test/ruby/test_fiber.rb | 5 +++++ 4 files changed, 23 insertions(+), 2 deletions(-) |
||
|---|---|---|
| .. | ||
| http.rb | ||
| scheduler.rb | ||
| test_backtrace.rb | ||
| test_enumerator.rb | ||
| test_io.rb | ||
| test_mutex.rb | ||
| test_process.rb | ||
| test_ractor.rb | ||
| test_scheduler.rb | ||
| test_sleep.rb | ||
| test_thread.rb | ||