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

ruby-changes:66614

From: Nobuyoshi <ko1@a...>
Date: Sun, 27 Jun 2021 21:20:25 +0900 (JST)
Subject: [ruby-changes:66614] e724857f42 (master): Show leaked file descriptors only, without cwd, txt, and so on

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

From e724857f42280fe285e6d0de69b4832458b80b0a Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 27 Jun 2021 21:17:00 +0900
Subject: Show leaked file descriptors only, without cwd, txt, and so on

---
 tool/lib/leakchecker.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tool/lib/leakchecker.rb b/tool/lib/leakchecker.rb
index 4b01d57..1d45a3a 100644
--- a/tool/lib/leakchecker.rb
+++ b/tool/lib/leakchecker.rb
@@ -112,7 +112,7 @@ class LeakChecker https://github.com/ruby/ruby/blob/trunk/tool/lib/leakchecker.rb#L112
       }
       unless fd_leaked.empty?
         unless @@try_lsof == false
-          @@try_lsof |= system("lsof -p #$$", out: MiniTest::Unit.output)
+          @@try_lsof |= system(*%W[lsof -a -d #{fd_leaked.minmax.uniq.join("-")} -p #$$], out: MiniTest::Unit.output)
         end
       end
       h.each {|fd, list|
-- 
cgit v1.1


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

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