mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -05:00
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
This commit is contained in:
parent
9969de9e00
commit
38020d157d
6 changed files with 41 additions and 0 deletions
|
|
@ -750,6 +750,8 @@ static bool _spawn_swaybg(char **command) {
|
|||
sway_log_errno(SWAY_ERROR, "fork failed");
|
||||
return false;
|
||||
} else if (pid == 0) {
|
||||
restore_nofile_limit();
|
||||
|
||||
pid = fork();
|
||||
if (pid < 0) {
|
||||
sway_log_errno(SWAY_ERROR, "fork failed");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue