diff options
author | Luke Gruber <[email protected]> | 2025-06-05 20:31:45 -0400 |
---|---|---|
committer | <[email protected]> | 2025-06-06 09:31:45 +0900 |
commit | 54ef6c312a2154f26e971af9e4a483d5d377730e () | |
tree | a48df44df41e3bab09b88dfb0377dba44f584e34 /thread.c | |
parent | 86eb5f9c0590f4a855c9158777b1a600b03b22b4 (diff) |
[Bug #21400] Fix rb_bug() when killing current root fiber in non-main thread (#13526)
Fixes the following: ```ruby Thread.new { Fiber.current.kill }.join ```
Notes: Merged-By: ioquatix <[email protected]>
-rw-r--r-- | thread.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1127,6 +1127,10 @@ thread_join(rb_thread_t *target_th, VALUE timeout, rb_hrtime_t *limit) /* OK. killed. */ break; default: rb_bug("thread_join: Fixnum (%d) should not reach here.", FIX2INT(err)); } } |