[mutter] mutter: Raise the NOFILE limit if a Wayland compositor
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] mutter: Raise the NOFILE limit if a Wayland compositor
- Date: Mon, 7 Feb 2022 16:00:48 +0000 (UTC)
commit 6427b2760263aa11864ea95279699f96cea4d771
Author: Olivier Fourdan <ofourdan redhat com>
Date: Tue Jan 18 17:58:49 2022 +0100
mutter: Raise the NOFILE limit if a Wayland compositor
When being run as a Wayland compositor, raise the NOFILE limit to
mitigate the risk of running out of file descriptors.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2235>
src/core/mutter.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/core/mutter.c b/src/core/mutter.c
index 51b9951b13..3772ecca4e 100644
--- a/src/core/mutter.c
+++ b/src/core/mutter.c
@@ -170,6 +170,9 @@ main (int argc, char **argv)
g_child_watch_add (command_pid, command_exited_cb, context);
}
+ if (meta_context_get_compositor_type (context) == META_COMPOSITOR_TYPE_WAYLAND)
+ meta_context_raise_rlimit_nofile (context, NULL);
+
if (!meta_context_run_main_loop (context, &error))
{
g_printerr ("Mutter terminated with a failure: %s\n", error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]