summaryrefslogtreecommitdiff
path: root/tool/lib/leakchecker.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-27 21:17:00 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-27 21:17:58 +0900
commite724857f42280fe285e6d0de69b4832458b80b0a (patch)
treea1947dad912c4380403db06e4f093075fdaa5a2a /tool/lib/leakchecker.rb
parent3839a8fe79a3ec95ff9bf78ad1fd95953d600876 (diff)
Show leaked file descriptors only, without cwd, txt, and so on
Diffstat (limited to 'tool/lib/leakchecker.rb')
-rw-r--r--tool/lib/leakchecker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/leakchecker.rb b/tool/lib/leakchecker.rb
index 4b01d57792..1d45a3a8df 100644
--- a/tool/lib/leakchecker.rb
+++ b/tool/lib/leakchecker.rb
@@ -112,7 +112,7 @@ class LeakChecker
}
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|