forker: drop parent fd in forker
So that the forker dies when the parent fd is dropped. This happens in the integration tests.
This commit is contained in:
parent
c827a93dbb
commit
03b267e51f
1 changed files with 4 additions and 1 deletions
|
|
@ -103,7 +103,10 @@ impl ForkerProxy {
|
||||||
pending_pidfds: Default::default(),
|
pending_pidfds: Default::default(),
|
||||||
fds: Default::default(),
|
fds: Default::default(),
|
||||||
}),
|
}),
|
||||||
Forked::Child { .. } => Forker::handle(pid, child),
|
Forked::Child { .. } => {
|
||||||
|
drop(parent);
|
||||||
|
Forker::handle(pid, child)
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue