Merge pull request #5088 from liubin/fix/5087-force-shutdown-shim

runtime-rs: force shutdown shim process in it can't exit
This commit is contained in:
Bin Liu
2022-10-13 16:55:05 +08:00
committed by GitHub
3 changed files with 31 additions and 6 deletions

View File

@@ -155,7 +155,7 @@ impl ServiceManager {
let handler = RuntimeHandlerManager::new(sid, sender)
.await
.context("new runtime handler")?;
handler.cleanup().await?;
handler.cleanup().await.context("runtime handler cleanup")?;
let temp_dir = [KATA_PATH, sid].join("/");
if std::fs::metadata(temp_dir.as_str()).is_ok() {
// try to remove dir and skip the result