diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-06-27 21:17:00 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-06-27 21:17:58 +0900 |
commit | e724857f42280fe285e6d0de69b4832458b80b0a (patch) | |
tree | a1947dad912c4380403db06e4f093075fdaa5a2a /tool | |
parent | 3839a8fe79a3ec95ff9bf78ad1fd95953d600876 (diff) | |
download | ruby-e724857f42280fe285e6d0de69b4832458b80b0a.tar.gz |
Show leaked file descriptors only, without cwd, txt, and so on
Diffstat (limited to 'tool')
-rw-r--r-- | tool/lib/leakchecker.rb | 2 |
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| |