From 73ce7fc794b5e6b68a400829c065374ad45435d1 Mon Sep 17 00:00:00 2001 From: stas Date: Sat, 24 Oct 2009 10:52:07 +0000 Subject: - 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 Obtained from: Ruby SVN --- lang/ruby19/files/patch-tempfile.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lang/ruby19/files/patch-tempfile.rb (limited to 'lang/ruby19') diff --git a/lang/ruby19/files/patch-tempfile.rb b/lang/ruby19/files/patch-tempfile.rb new file mode 100644 index 000000000000..196f01e417d4 --- /dev/null +++ b/lang/ruby19/files/patch-tempfile.rb @@ -0,0 +1,10 @@ +--- 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) -- cgit