aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2021-10-21 21:52:17 +0200
committerLibravatar Simon Zeni <simon@bl4ckb0ne.ca>2021-10-30 08:19:35 -0600
commit38020d157ddb58e756c654e9a2ff203c1562b25b (patch)
treee042c3c6d0d9f03e75812dffc0ac2e54d9b6dd8e /include
parentAdd smart_gaps inverse_outer command (diff)
downloadsway-38020d157ddb58e756c654e9a2ff203c1562b25b.tar.gz
sway-38020d157ddb58e756c654e9a2ff203c1562b25b.tar.zst
sway-38020d157ddb58e756c654e9a2ff203c1562b25b.zip
Bump RLIMIT_NOFILE
Wayland compositors handle many file descriptors: client connections, DMA-BUFs, sync_files, wl_data_device pipes, and so on. Bump the limit to the max. Closes: https://github.com/swaywm/sway/issues/6285
Diffstat (limited to 'include')
-rw-r--r--include/sway/server.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/server.h b/include/sway/server.h
index 88dda097..f99bbda6 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -137,6 +137,8 @@ void server_fini(struct sway_server *server);
137bool server_start(struct sway_server *server); 137bool server_start(struct sway_server *server);
138void server_run(struct sway_server *server); 138void server_run(struct sway_server *server);
139 139
140void restore_nofile_limit(void);
141
140void handle_compositor_new_surface(struct wl_listener *listener, void *data); 142void handle_compositor_new_surface(struct wl_listener *listener, void *data);
141void handle_new_output(struct wl_listener *listener, void *data); 143void handle_new_output(struct wl_listener *listener, void *data);
142 144