Join GitHub today
IO.copy_streams are not closing filename argument IO instances. #3766
JRuby 1.7.25 (not sure about 9k but it will be another issue if so)
On windows ruby/spec will fail because it is trying to delete files in which an open IO object is still keep the file open. Because windows cannot delete any file which is already open then this is undesirable.
This issue is not really noticed on non-windows machines so I marked this against windows but for non-IO passed in arguments this could potentially starve a process out of all available file descriptors. So it really affects all systems. It is just super apparent on windows :)