Skip to content

Commit

Permalink
Merge pull request #11725 from atambo/jruby_capture_unlink
Browse files Browse the repository at this point in the history
Fix jruby warning when capture calls unlink on an open tempfile
  • Loading branch information
guilleiguaran committed Aug 2, 2013
2 parents fd20f2e + ae50fd6 commit bf520b1
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -91,6 +91,7 @@ def capture(stream)
stream_io.rewind
return captured_stream.read
ensure
captured_stream.close
captured_stream.unlink
stream_io.reopen(origin_stream)
end
Expand Down

0 comments on commit bf520b1

Please sign in to comment.