Skip to content

Commit

Permalink
polipo: set nofile limits in plist.
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#35233.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
Vasily Korytov authored and MikeMcQuaid committed Dec 27, 2014
1 parent 7812d14 commit 550b59f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Formula/polipo.rb
Expand Up @@ -36,6 +36,15 @@ def plist; <<-EOS.undent
<array>
<string>#{opt_bin}/polipo</string>
</array>
<!-- Set `ulimit -n 20480`. The default OS X limit is 256, that's
not enough for Polipo (displays 'too many files open' errors).
It seems like you have no reason to lower this limit
(and unlikely will want to raise it). -->
<key>SoftResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
<integer>20480</integer>
</dict>
</dict>
</plist>
EOS
Expand Down

0 comments on commit 550b59f

Please sign in to comment.