aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2025-03-09 12:17:42 +0100
committerKenny Levinsen <kl@kl.wtf>2025-03-11 09:15:05 +0100
commit61cc08cf3c49b0a5785b50c070ef3c33f1bbacab (patch)
tree9e4f8932dcc13d9f9141a895831e70470a863c7b
parent8238e5242bdbbc4c3b7cba0651c620a89b872a27 (diff)
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.
-rw-r--r--sway/config/output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index 4d4a47b4..b8a613cc 100644
--- 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);
}