Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

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: #1690
Signed-off-by: Peng Tao <[email protected]>
  • Loading branch information
bergwolf committed May 16, 2019
1 parent c50d218 commit c207e51
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 @@ -646,6 +646,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 c207e51

Please sign in to comment.