diff options
author | emersion <contact@emersion.fr> | 2018-06-08 14:41:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-08 14:41:22 +0100 |
commit | 231c72a141fbf2bfd5c42413fe171f596a2ec42a (patch) | |
tree | 2035644a67f3e629565afd5026d16795d100172d /sway | |
parent | Merge pull request #2118 from RedSoxFan/fix-2117 (diff) | |
parent | sway exec command: use waitpid instead of wait (diff) | |
download | sway-231c72a141fbf2bfd5c42413fe171f596a2ec42a.tar.gz sway-231c72a141fbf2bfd5c42413fe171f596a2ec42a.tar.zst sway-231c72a141fbf2bfd5c42413fe171f596a2ec42a.zip |
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.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 |