diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/config/output.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index cb889b3e..3a36ed18 100644 --- 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[]) { | |||
221 | pid = fork(); | 221 | pid = fork(); |
222 | if (pid < 0) { | 222 | if (pid < 0) { |
223 | sway_log_errno(SWAY_ERROR, "fork failed"); | 223 | sway_log_errno(SWAY_ERROR, "fork failed"); |
224 | exit(EXIT_FAILURE); | 224 | _exit(EXIT_FAILURE); |
225 | } else if (pid == 0) { | 225 | } else if (pid == 0) { |
226 | if (!set_cloexec(sockets[1], false)) { | 226 | if (!set_cloexec(sockets[1], false)) { |
227 | exit(EXIT_FAILURE); | 227 | _exit(EXIT_FAILURE); |
228 | } | 228 | } |
229 | 229 | ||
230 | char wayland_socket_str[16]; | 230 | char wayland_socket_str[16]; |
@@ -234,9 +234,9 @@ static bool spawn_swaybg(struct sway_output *output, char *const cmd[]) { | |||
234 | 234 | ||
235 | execvp(cmd[0], cmd); | 235 | execvp(cmd[0], cmd); |
236 | sway_log_errno(SWAY_ERROR, "execvp failed"); | 236 | sway_log_errno(SWAY_ERROR, "execvp failed"); |
237 | exit(EXIT_FAILURE); | 237 | _exit(EXIT_FAILURE); |
238 | } | 238 | } |
239 | exit(EXIT_SUCCESS); | 239 | _exit(EXIT_SUCCESS); |
240 | } | 240 | } |
241 | 241 | ||
242 | if (close(sockets[1]) != 0) { | 242 | if (close(sockets[1]) != 0) { |