mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
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:
parent
4edfae68c4
commit
a55e97036f
1 changed files with 1 additions and 0 deletions
|
|
@ -1061,6 +1061,7 @@ static bool _spawn_swaybg(char **command) {
|
||||||
return false;
|
return false;
|
||||||
} else if (pid == 0) {
|
} else if (pid == 0) {
|
||||||
restore_nofile_limit();
|
restore_nofile_limit();
|
||||||
|
restore_signals();
|
||||||
if (!sway_set_cloexec(sockets[1], false)) {
|
if (!sway_set_cloexec(sockets[1], false)) {
|
||||||
_exit(EXIT_FAILURE);
|
_exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue