1
0
Fork 0
forked from wry/wry

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:
Julian Orth 2022-05-04 14:39:23 +02:00
parent c827a93dbb
commit 03b267e51f

View file

@ -103,7 +103,10 @@ impl ForkerProxy {
pending_pidfds: Default::default(),
fds: Default::default(),
}),
Forked::Child { .. } => Forker::handle(pid, child),
Forked::Child { .. } => {
drop(parent);
Forker::handle(pid, child)
},
}
}