Skip to content

Commit

Permalink
fix process exit waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
insidewhy committed Jul 5, 2015
1 parent a24a0cd commit 584be57
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ static void wait_for_requested_commands_to_exit(int n_cmds, pid_t *pids) {

static void wait_for_all_processes_to_exit() {
int status;
if (! running) return;
for (;;) {
if (waitpid(-1, &status, 0) == -1 && errno == ECHILD)
return;
Expand Down

0 comments on commit 584be57

Please sign in to comment.