Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virtiofs: stop sandbox when virtiofsd quits
Commit 89e0dfa ("qemu: stop qemu process when virtiofsd quits") stops sandbox when virtiofsd quits so that virtiofs mount inside guest won't hang. But commit d5a3d0a ("virtiofs: use virtiofsd --fd=FDNUM") deleted this monitor logic. Add the Scanner back to monitor virtiofsd's stderr and stop sandbox if Scanner returns error. Note that we don't monitor the virtiofsd process itself is because virtiofsd may be live-upgraded (when available) and the original process may quit, but virtiofs service is still running. Fixes: kata-containers#2315 Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
- Loading branch information