diff options
-rw-r--r-- | sway/commands/exec_always.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands/exec_always.c b/sway/commands/exec_always.c index 3786bfb7..781c86c9 100644 --- a/sway/commands/exec_always.c +++ b/sway/commands/exec_always.c | |||
@@ -66,7 +66,8 @@ struct cmd_results *cmd_exec_process(int argc, char **argv) { | |||
66 | if ((child = fork()) == 0) { | 66 | if ((child = fork()) == 0) { |
67 | close(fd[1]); | 67 | close(fd[1]); |
68 | execlp("sh", "sh", "-c", cmd, (void *)NULL); | 68 | execlp("sh", "sh", "-c", cmd, (void *)NULL); |
69 | _exit(0); | 69 | sway_log_errno(SWAY_ERROR, "execlp failed"); |
70 | _exit(1); | ||
70 | } | 71 | } |
71 | ssize_t s = 0; | 72 | ssize_t s = 0; |
72 | while ((size_t)s < sizeof(pid_t)) { | 73 | while ((size_t)s < sizeof(pid_t)) { |