From d26a0a1a6e88ae632c2bcc33fed589ff733c818e Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Fri, 8 Jun 2018 22:27:33 +0900 Subject: sway exec command: use waitpid instead of wait --- sway/commands/exec_always.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands/exec_always.c b/sway/commands/exec_always.c index af4e4965..682d195e 100644 --- a/sway/commands/exec_always.c +++ b/sway/commands/exec_always.c @@ -73,7 +73,7 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) { } close(fd[0]); // cleanup child process - wait(0); + waitpid(pid, NULL, 0); if (*child > 0) { wlr_log(L_DEBUG, "Child process created with pid %d", *child); // TODO: add PID to active workspace -- cgit v1.2.3-54-g00ecf