shimv2: fix the issue of reaping child mistakenly

For kata shimv2, the sub-reaper isn't needed, otherwise
it will break the cmd.Run() calling in govmmQemu.LaunchQemu().

Fixes: #939

Signed-off-by: fupan <lifupan@gmail.com>
This commit is contained in:
fupan 2018-12-06 10:44:42 +08:00 committed by Fupan Li
parent e4a3fd5565
commit df8b7db3ae

View File

@ -10,6 +10,11 @@ import (
"github.com/kata-containers/runtime/containerd-shim-v2"
)
func main() {
shim.Run("io.containerd.kata.v2", containerdshim.New)
func shimConfig(config *shim.Config) {
config.NoReaper = true
config.NoSubreaper = true
}
func main() {
shim.Run("io.containerd.kata.v2", containerdshim.New, shimConfig)
}