mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-29 11:14:31 +01:00
virtiofs: wait for virtiofsd process to release its resources
We start virtiofsd in foreground (-f option), so we should wait for it to reclaim its resources to avoid zombie process when qemu or virtiofsd got killed unexpectedly. Fixes: #1934 Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
This commit is contained in:
@@ -658,6 +658,8 @@ func (q *qemu) setupVirtiofsd(timeout int) (remain int, err error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
q.Logger().Info("virtiofsd quits")
|
q.Logger().Info("virtiofsd quits")
|
||||||
|
// Wait to release resources of virtiofsd process
|
||||||
|
cmd.Process.Wait()
|
||||||
q.stopSandbox()
|
q.stopSandbox()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user