mirror of
https://github.com/swaywm/sway.git
synced 2025-04-02 02:17:45 +03:00
config/output: Reset everything before swaybg exec
swaybar and the exec command reset signal masks, signal handlers and NOFILE limit before exec, but swaybg was missing all that. Reset it for swaybg as well.
This commit is contained in:
parent
8238e5242b
commit
61cc08cf3c
1 changed files with 1 additions and 0 deletions
|
@ -1061,6 +1061,7 @@ static bool _spawn_swaybg(char **command) {
|
|||
return false;
|
||||
} else if (pid == 0) {
|
||||
restore_nofile_limit();
|
||||
restore_signals();
|
||||
if (!sway_set_cloexec(sockets[1], false)) {
|
||||
_exit(EXIT_FAILURE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue