LibWebView: Increase the open file limit in a more central location

We don't create a ChromeProcess in headless-browser, so it is currently
not increasing it's open file limit. This is causing crashes on macOS,
which has a very low default limit.
This commit is contained in:
Timothy Flynn 2024-10-07 13:36:17 -04:00 committed by Tim Flynn
commit 598fabbdd3
Notes: github-actions[bot] 2024-10-07 18:04:04 +00:00
5 changed files with 8 additions and 14 deletions

View file

@ -49,7 +49,7 @@ public:
ExitProcess,
};
static ErrorOr<ChromeProcess> create();
ChromeProcess() = default;
~ChromeProcess();
ErrorOr<ProcessDisposition> connect(Vector<ByteString> const& raw_urls, NewWindow new_window);
@ -58,8 +58,6 @@ public:
Function<void(Vector<URL::URL> const&)> on_new_window;
private:
ChromeProcess() = default;
ErrorOr<void> connect_as_client(ByteString const& socket_path, Vector<ByteString> const& raw_urls, NewWindow new_window);
ErrorOr<void> connect_as_server(ByteString const& socket_path);