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:
Kenny Levinsen 2025-03-09 12:17:42 +01:00
parent 4edfae68c4
commit a55e97036f

View file

@ -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);
}