Skip to content

Commit

Permalink
wait for child after kill
Browse files Browse the repository at this point in the history
  • Loading branch information
tofay committed Apr 15, 2024
1 parent 0138226 commit 41a5642
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ fn run_in_userns() -> anyhow::Result<()> {
setup_id_maps(child, user_id, group_id).context("Failed to setup uid/gid mappings")
{
signal::kill(child, Signal::SIGTERM)?;
waitpid(child, None)?;
return Err(e);
}
close(writer)?;
Expand Down

0 comments on commit 41a5642

Please sign in to comment.