mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 09:13:29 +00: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:
parent
00e0aaa6e4
commit
a9168a3fc9
@ -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()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user