mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-01 17:52:40 +00:00
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:
parent
e4a3fd5565
commit
df8b7db3ae
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user