aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config/bar.c
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 /sway/config/bar.c
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 'sway/config/bar.c')
-rw-r--r--sway/config/bar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/config/bar.c b/sway/config/bar.c
index e09add44..d1b342e6 100644
--- a/sway/config/bar.c
+++ b/sway/config/bar.c
@@ -219,6 +219,8 @@ static void invoke_swaybar(struct bar_config *bar) {
219 sigprocmask(SIG_SETMASK, &set, NULL); 219 sigprocmask(SIG_SETMASK, &set, NULL);
220 signal(SIGPIPE, SIG_DFL); 220 signal(SIGPIPE, SIG_DFL);
221 221
222 restore_nofile_limit();
223
222 pid = fork(); 224 pid = fork();
223 if (pid < 0) { 225 if (pid < 0) {
224 sway_log_errno(SWAY_ERROR, "fork failed"); 226 sway_log_errno(SWAY_ERROR, "fork failed");