commit 61cc08cf3c49b0a5785b50c070ef3c33f1bbacab
parent 8238e5242bdbbc4c3b7cba0651c620a89b872a27
Author: Kenny Levinsen <kl@kl.wtf>
Date: Sun, 9 Mar 2025 12:17:42 +0100
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.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/sway/config/output.c b/sway/config/output.c
@@ -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);
}