diff options
author | Simon Ser <contact@emersion.fr> | 2021-10-21 21:52:17 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-10-30 08:19:35 -0600 |
commit | 38020d157ddb58e756c654e9a2ff203c1562b25b (patch) | |
tree | e042c3c6d0d9f03e75812dffc0ac2e54d9b6dd8e /sway/config/output.c | |
parent | Add smart_gaps inverse_outer command (diff) | |
download | sway-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/output.c')
-rw-r--r-- | sway/config/output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index 8e937b28..6d39c2f5 100644 --- a/sway/config/output.c +++ b/sway/config/output.c | |||
@@ -750,6 +750,8 @@ static bool _spawn_swaybg(char **command) { | |||
750 | sway_log_errno(SWAY_ERROR, "fork failed"); | 750 | sway_log_errno(SWAY_ERROR, "fork failed"); |
751 | return false; | 751 | return false; |
752 | } else if (pid == 0) { | 752 | } else if (pid == 0) { |
753 | restore_nofile_limit(); | ||
754 | |||
753 | pid = fork(); | 755 | pid = fork(); |
754 | if (pid < 0) { | 756 | if (pid < 0) { |
755 | sway_log_errno(SWAY_ERROR, "fork failed"); | 757 | sway_log_errno(SWAY_ERROR, "fork failed"); |