Project

General

Profile

Actions

Bug #595

closed

Fiber ignores ensure clause

Added by ko1 (Koichi Sasada) about 16 years ago. Updated over 1 year ago.

Status:
Closed
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 3 (0 open3 closed)

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がおちるClosedko1 (Koichi Sasada)12/08/2009Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0