[前][次][番号順一覧][スレッド一覧]

ruby-changes:55734

From: Nobuyoshi <ko1@a...>
Date: Thu, 16 May 2019 14:59:26 +0900 (JST)
Subject: [ruby-changes:55734] Nobuyoshi Nakada: 18e43e8231 (trunk): Fix fd leak

https://git.ruby-lang.org/ruby.git/commit/?id=18e43e8231

From 18e43e823106f15c8aaceb1f56874bdf67bc36a3 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 16 May 2019 14:58:57 +0900
Subject: Fix fd leak

merged https://github.com/rubygems/rubygems/pull/2765

diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index a4b1bf3..5024cfb 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -2898,7 +2898,7 @@ duplicate dependency on c (>= 1.2.3, development), (~> 1.2) use: https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_specification.rb#L2898
     util_setup_validate
 
     FileUtils.mkdir_p File.join(@tempdir, 'bin')
-    File.open File.join(@tempdir, 'bin', 'exec'), 'w'
+    File.write File.join(@tempdir, 'bin', 'exec'), ''
     FileUtils.mkdir_p File.join(@tempdir, 'exec')
 
     use_ui @ui do
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]