sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 1c329f2fe6ae344b3201447a586f6c9a571d44ff
parent 430359519c1cb9583020fc8da04f5ecc31b0e914
Author: Noam Preil <pleasantatk@gmail.com>
Date:   Sat,  2 Mar 2019 16:09:14 -0500

Fixes crash in spawn_swaybg (closes #3733)

Diffstat:
Msway/config/output.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sway/config/output.c b/sway/config/output.c @@ -221,10 +221,10 @@ static bool spawn_swaybg(struct sway_output *output, char *const cmd[]) { pid = fork(); if (pid < 0) { sway_log_errno(SWAY_ERROR, "fork failed"); - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } else if (pid == 0) { if (!set_cloexec(sockets[1], false)) { - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } char wayland_socket_str[16]; @@ -234,9 +234,9 @@ static bool spawn_swaybg(struct sway_output *output, char *const cmd[]) { execvp(cmd[0], cmd); sway_log_errno(SWAY_ERROR, "execvp failed"); - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } - exit(EXIT_SUCCESS); + _exit(EXIT_SUCCESS); } if (close(sockets[1]) != 0) {