mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-13 04:49:36 +00:00
Merge pull request #9598 from lifupan/main_shim
runtime-rs: fix the issue of the leak of dead shim
This commit is contained in:
@@ -128,13 +128,16 @@ impl RuntimeHandlerManagerInner {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let instance = Arc::new(runtime_instance);
|
||||||
|
self.runtime_instance = Some(instance.clone());
|
||||||
|
|
||||||
// start sandbox
|
// start sandbox
|
||||||
runtime_instance
|
instance
|
||||||
.sandbox
|
.sandbox
|
||||||
.start(dns, spec, state, network_env)
|
.start(dns, spec, state, network_env)
|
||||||
.await
|
.await
|
||||||
.context("start sandbox")?;
|
.context("start sandbox")?;
|
||||||
self.runtime_instance = Some(Arc::new(runtime_instance));
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user