From: Yukihiro Matsumoto Date: 2010-01-08T14:46:20+09:00 Subject: [ruby-core:27484] Re: [Bug #2560] IO.read not always closes the file Hi, In message "Re: [ruby-core:27483] Re: [Bug #2560] IO.read not always closes the file" on Fri, 8 Jan 2010 14:29:53 +0900, "U.Nakamura" writes: |In message "[ruby-core:27429] [Bug #2560] IO.read not always closes the file" | on Jan.06,2010 02:31:39, wrote: |> This is due to fact that IO.read, invoked with invalid offset parameter does not close the opened file. But the documentation clearly states that: |> "read ensures the file is closed before returning." | |1.8 has same problem, too. | |This patch is for trunk. Could you check in? matz.