aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-06-08 14:41:22 +0100
committerGitHub <noreply@github.com>2018-06-08 14:41:22 +0100
commit231c72a141fbf2bfd5c42413fe171f596a2ec42a (patch)
tree2035644a67f3e629565afd5026d16795d100172d /sway
parentbf6ca69ae8c1149e6b6ae84f5ddc40639d1ff5a1 (diff)
parentd26a0a1a6e88ae632c2bcc33fed589ff733c818e (diff)
downloadsway-231c72a141fbf2bfd5c42413fe171f596a2ec42a.tar.xz
Merge pull request #2120 from martinetd/swayidle-zombies
Swayidle: doublefork to not leave zombies around
Diffstat (limited to 'sway')
-rw-r--r--sway/commands/exec_always.c2
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) {
}
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