LibWebView+UI: Raise the chrome process open file limit

The default limit (at least on Linux) causes us to run out of file
descriptors at around 15 tabs. Increase this limit to 8k. This is a
rather arbitrary number, but matches the limit set by Chrome.
This commit is contained in:
Timothy Flynn
2024-07-22 10:17:44 -04:00
committed by Andreas Kling
parent 4451b4fda0
commit d58a8b5146
4 changed files with 15 additions and 4 deletions

View File

@@ -119,7 +119,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
args_parser.add_option(allow_popups, "Disable popup blocking by default", "allow-popups");
args_parser.parse(arguments);
WebView::ChromeProcess chrome_process;
auto chrome_process = TRY(WebView::ChromeProcess::create());
if (!force_new_process && TRY(chrome_process.connect(raw_urls, new_window)) == WebView::ChromeProcess::ProcessDisposition::ExitProcess) {
outln("Opening in existing process");
return 0;