Issue #2559 has been updated by Hongli Lai.


Simpler test case:

  a, b = IO.pipe
  a.close
  b.write("x")
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2559

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