diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2018-06-08 22:27:33 +0900 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2018-06-08 22:28:28 +0900 |
commit | d26a0a1a6e88ae632c2bcc33fed589ff733c818e (patch) | |
tree | 2035644a67f3e629565afd5026d16795d100172d /sway/commands/exec_always.c | |
parent | swayidle: doublefork to not leave zombies around (diff) | |
download | sway-d26a0a1a6e88ae632c2bcc33fed589ff733c818e.tar.gz sway-d26a0a1a6e88ae632c2bcc33fed589ff733c818e.tar.zst sway-d26a0a1a6e88ae632c2bcc33fed589ff733c818e.zip |
sway exec command: use waitpid instead of wait
Diffstat (limited to 'sway/commands/exec_always.c')
-rw-r--r-- | sway/commands/exec_always.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
73 | } | 73 | } |
74 | close(fd[0]); | 74 | close(fd[0]); |
75 | // cleanup child process | 75 | // cleanup child process |
76 | wait(0); | 76 | waitpid(pid, NULL, 0); |
77 | if (*child > 0) { | 77 | if (*child > 0) { |
78 | wlr_log(L_DEBUG, "Child process created with pid %d", *child); | 78 | wlr_log(L_DEBUG, "Child process created with pid %d", *child); |
79 | // TODO: add PID to active workspace | 79 | // TODO: add PID to active workspace |