Skip to content

Commit

Permalink
qemu: stop qemu process when virtiofsd quits
Browse files Browse the repository at this point in the history
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: kata-containers#1690
Signed-off-by: Peng Tao <[email protected]>
  • Loading branch information
bergwolf committed May 17, 2019
1 parent d0aae80 commit 89e0dfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions virtcontainers/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 89e0dfa

Please sign in to comment.