From 3a015b31ab90241a4354ed2d42f84fd5f38b1e36 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 26 Aug 2009 04:48:38 +0000 Subject: * lib/tempfile.rb (Tempfile#unlink): reverted r23494, since the usage in RubyInline is considered wrong. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/tempfile.rb | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 721d6b60d..b1c043857 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Aug 26 13:48:33 2009 Nobuyoshi Nakada + + * lib/tempfile.rb (Tempfile#unlink): reverted r23494, since the + usage in RubyInline is considered wrong. + Wed Aug 26 12:36:58 2009 Nobuyoshi Nakada * vm.c (collect_local_variables_in_env): skips internal variables. diff --git a/lib/tempfile.rb b/lib/tempfile.rb index a00208cd7..1bee9e101 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -137,7 +137,6 @@ class Tempfile < DelegateClass(File) # keep this order for thread safeness begin if File.exist?(@tmpname) - closed? or close File.unlink(@tmpname) end @@cleanlist.delete(@tmpname) -- cgit