From a55e97036fa8c7f7419f1c1906824fe1fc72ae6e Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sun, 9 Mar 2025 12:17:42 +0100 Subject: [PATCH] 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. --- sway/config/output.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sway/config/output.c b/sway/config/output.c index 4d4a47b46..b8a613cc5 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); }