1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-08-24 02:31:12 +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: 
Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
Peng Tao 2019-05-06 18:01:05 +08:00
parent d0aae80f55
commit 89e0dfae11

View File

@ -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 {