Project

General

Profile

Bug #595

Fiber ignores ensure clause

Added by ko1 (Koichi Sasada) over 11 years ago. Updated 3 months ago.

Status:
Assigned
Priority:
Normal
Target version:
-
ruby -v:
-
Backport:
[ruby-dev:36511]
Tags:

Description

Ruby プロセス終了時,Fiber が ensure を無視します.
これは,前から直そうと思って手がついていなかった問題です.
10月末までには直そうと思います.結構複雑なので,後回しにしていましました.

 fib = Fiber.new{
   begin
     Fiber.yield :ok
   ensure
     puts "should be print out"
   end
 }
 p fib.resume

Files

ensure_fiber.patch (2.12 KB) ensure_fiber.patch wanabe (_ wanabe), 01/13/2010 06:45 PM
ensure_fiber2.patch (7.57 KB) ensure_fiber2.patch wanabe (_ wanabe), 08/05/2012 01:05 PM

Related issues

Related to Ruby master - Bug #10540: Yielded fibers do not execute ensure blocksClosedko1 (Koichi Sasada)Actions
Related to Ruby master - Feature #10344: [PATCH] Implement Fiber#raiseClosedioquatix (Samuel Williams)Actions
Is duplicate of Ruby master - Bug #2460: RubySpecでFiberのSpecがおちるClosed12/08/2009ko1 (Koichi Sasada)Actions

Also available in: Atom PDF