Issue #1755 has been updated by Yusuke Endoh.

Status changed from Assigned to Closed

Hi,

This weird behavior is caused by buffering.  This may be improved in
the future, but at least currently, is not a bug.  [ruby-core:28335]

To avoid this, I recommend you to avoid IO#reopen.  If it is really
needed, use only against IO that has never been read yet.


There is some tickets related to the same reason.
I'll close them and register new ticket to Feature tracker to improve
this issue.

-- 
Yusue Endoh <mame / tsg.ne.jp>
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1755

----------------------------------------
http://redmine.ruby-lang.org