aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasily Korytov2014-12-24 14:52:50 +0200
committerMike McQuaid2014-12-27 20:11:11 +0000
commitb79cb2b5c0f8fc920206fc774995c4d0519d3a34 (patch)
treec37220ec002444e728a55cad1aec3f624dfd81b8
parent9ae0da1be77e7897362a43897ee2731af72bfc95 (diff)
downloadhomebrew-b79cb2b5c0f8fc920206fc774995c4d0519d3a34.tar.bz2
polipo: set nofile limits in plist.
Closes #35233. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/polipo.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/polipo.rb b/Library/Formula/polipo.rb
index 4c6e2e7d3..4e84d4555 100644
--- a/Library/Formula/polipo.rb
+++ b/Library/Formula/polipo.rb
@@ -36,6 +36,15 @@ class Polipo < Formula
<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