Skip to content

Commit

Permalink
Merge pull request #303 from henrich/patch-1
Browse files Browse the repository at this point in the history
Avoid thousands of lsof warnings in chroot
  • Loading branch information
grosser committed Sep 3, 2021
2 parents e100693 + 60f8606 commit 1243fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/cases/count_open_pipes.rb
@@ -1,5 +1,5 @@
require './spec/cases/helper'
count = ->(*) { `lsof | grep pipe | wc -l`.to_i }
count = ->(*) { `lsof -l | grep pipe | wc -l`.to_i }
start = count.()
results = Parallel.map(Array.new(20), :in_processes => 20, &count)
puts results.max - start

0 comments on commit 1243fea

Please sign in to comment.