Fence worker reaping by process incarnation
This commit is contained in:
parent
08383c6d6e
commit
f90f118607
2 changed files with 50 additions and 6 deletions
|
|
@ -676,7 +676,13 @@ impl<'a> NativePorts<'a> {
|
|||
fn reap_adopted_worker_children(&mut self) -> Result<usize> {
|
||||
let mut reaped = 0;
|
||||
for claim in runtime_worker_process_claims(&self.policy.runtime_store)? {
|
||||
if reap_exited_child_process(claim.process_id)? {
|
||||
let expected = ProcessInstanceIdentity {
|
||||
process_id: claim.process_id,
|
||||
creation_token: claim.process_creation_token,
|
||||
created_at_rfc3339: None,
|
||||
executable_path: claim.process_executable_path.into(),
|
||||
};
|
||||
if reap_exited_child_process(&expected)? {
|
||||
reaped += 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue