aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2025-03-09 12:17:42 +0100
committerFurkan Sahin <furkan-dev@proton.me>2025-03-09 12:17:42 +0100
commit19b19c1b17de7ffb1294fcf69b0d02ce991bb93b (patch)
tree9e4f8932dcc13d9f9141a895831e70470a863c7b
parent054c2d814d43eabd97e3902aa2c03d1b0ee7bdbc (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);
}