Skip to content

Commit

Permalink
bubblewrap: do not leave zombie process
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
  • Loading branch information
giuseppe committed Nov 10, 2016
1 parent 5f569bd commit 51b762c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bubblewrap.c
Expand Up @@ -1907,6 +1907,7 @@ main (int argc,
}
else
{
int status;
uint32_t buffer[2048]; /* 8k, but is int32 to guarantee nice alignment */
uint32_t op, flags;
const char *arg1, *arg2;
Expand All @@ -1925,6 +1926,7 @@ main (int argc,
}
while (op != PRIV_SEP_OP_DONE);

waitpid (child, &status, 0);
/* Continue post setup */
}
}
Expand Down

0 comments on commit 51b762c

Please sign in to comment.