mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 07:22:20 +00:00
qemu: stop qemu process when virtiofsd quits
If virtiofsd fails to initialize and stops unexpected, qemu might hang forever. We just stop the qemu process. Resource cleanup will be done by others. Fixes: #1690 Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
d0aae80f55
commit
89e0dfae11
@ -645,6 +645,7 @@ func (q *qemu) startSandbox(timeout int) error {
|
||||
}
|
||||
}
|
||||
q.Logger().Info("virtiofsd quits")
|
||||
q.stopSandbox()
|
||||
}()
|
||||
timeoutDuration := time.Duration(timeout) * time.Second
|
||||
select {
|
||||
|
Loading…
Reference in New Issue
Block a user