summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-content_browser_browser__main__loop.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-content_browser_browser__main__loop.cc')
-rw-r--r--www/chromium/files/patch-content_browser_browser__main__loop.cc17
1 files changed, 13 insertions, 4 deletions
diff --git a/www/chromium/files/patch-content_browser_browser__main__loop.cc b/www/chromium/files/patch-content_browser_browser__main__loop.cc
index 7ba36644a563..a1281200bb34 100644
--- a/www/chromium/files/patch-content_browser_browser__main__loop.cc
+++ b/www/chromium/files/patch-content_browser_browser__main__loop.cc
@@ -1,6 +1,6 @@
---- content/browser/browser_main_loop.cc.orig 2016-05-11 19:02:20 UTC
-+++ content/browser/browser_main_loop.cc
-@@ -191,7 +191,7 @@
+--- content/browser/browser_main_loop.cc.orig 2016-07-20 22:03:24.000000000 +0300
++++ content/browser/browser_main_loop.cc 2016-08-18 02:39:59.331387000 +0300
+@@ -203,7 +203,7 @@
namespace content {
namespace {
@@ -9,7 +9,7 @@
void SetupSandbox(const base::CommandLine& parsed_command_line) {
TRACE_EVENT0("startup", "SetupSandbox");
base::FilePath sandbox_binary;
-@@ -444,7 +444,7 @@ void BrowserMainLoop::EarlyInitializatio
+@@ -467,7 +467,7 @@
TRACE_EVENT0("startup", "BrowserMainLoop::EarlyInitialization");
TRACK_SCOPED_REGION("Startup", "BrowserMainLoop::EarlyInitialization");
@@ -18,3 +18,12 @@
// No thread should be created before this call, as SetupSandbox()
// will end-up using fork().
SetupSandbox(parsed_command_line_);
+@@ -507,7 +507,7 @@
+ // We use quite a few file descriptors for our IPC, and the default limit on
+ // the Mac is low (256), so bump it up.
+ base::SetFdLimit(1024);
+-#elif defined(OS_LINUX)
++#elif defined(OS_LINUX) || defined(OS_BSD)
+ // Same for Linux. The default various per distro, but it is 1024 on Fedora.
+ // Low soft limits combined with liberal use of file descriptors means power
+ // users can easily hit this limit with many open tabs. Bump up the limit to