1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix jruby warning when capture calls unlink on an open tempfile

Jruby cannot unlink a tempfile unless it is closed first.
This commit is contained in:
Alex Tambellini 2013-08-02 18:02:38 -04:00
parent fd20f2e3c0
commit ae50fd61c6

View file

@ -91,6 +91,7 @@ module Kernel
stream_io.rewind
return captured_stream.read
ensure
captured_stream.close
captured_stream.unlink
stream_io.reopen(origin_stream)
end