Skip to content

Commit 17345bf

Browse files
ioquatixko1
authored andcommitted
Don't let @q_cmd.pop enter the fiber scheduler.
1 parent baf98e4 commit 17345bf

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/debug/thread_client.rb

+12-1
Original file line numberDiff line numberDiff line change
@@ -862,8 +862,19 @@ def make_breakpoint args
862862
class SuspendReplay < Exception
863863
end
864864

865+
if ::Fiber.respond_to?(:blocking)
866+
private def fiber_blocking
867+
::Fiber.blocking{yield}
868+
end
869+
else
870+
private def fiber_blocking
871+
yield
872+
end
873+
end
874+
875+
865876
def wait_next_action
866-
wait_next_action_
877+
fiber_blocking{wait_next_action_}
867878
rescue SuspendReplay
868879
replay_suspend
869880
end

0 commit comments

Comments
 (0)