freebsd-ports/lang/ruby19/files/patch-tempfile.rb
Stanislav Sedov d4693481b1 - Fix issue when the handle of tempfile become closed when the file
was unlinked (see http://redmine.ruby-lang.org/issues/show/1494#note-10).
- Bump PORTREVISION.

PR:		ports/139862
Submitted by:	Ari Maniatis <ari@ish.com.au>
Obtained from:	Ruby SVN
2009-10-24 10:52:07 +00:00

10 lines
327 B
Ruby

--- lib/tempfile.rb.orig 2009-07-15 21:57:41.000000000 +1000
+++ lib/tempfile.rb 2009-10-23 21:31:49.159715744 +1100
@@ -137,7 +137,6 @@
# keep this order for thread safeness
begin
if File.exist?(@tmpname)
- closed? or close
File.unlink(@tmpname)
end
@@cleanlist.delete(@tmpname)