summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-26 04:48:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-26 04:48:38 +0000
commitd4e85c416d1ad24fb6dd7c639260ef0c457d3816 (patch)
tree85dc17ee4f6af1ba9d3444286c08a1d2547e15b4
parentb6cf78511962ba901ca4a86ffdeb6624afe8dfb1 (diff)
* lib/tempfile.rb (Tempfile#unlink): reverted r23494, since the
usage in RubyInline is considered wrong. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/tempfile.rb1
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 721d6b60d5..b1c0438572 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Aug 26 13:48:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile#unlink): reverted r23494, since the
+ usage in RubyInline is considered wrong.
+
Wed Aug 26 12:36:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm.c (collect_local_variables_in_env): skips internal variables.
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index a00208cd7c..1bee9e1015 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)