Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
shimv2: fix the issue of reaping child mistakenly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lifupan committed Dec 11, 2018
1 parent e4a3fd5 commit df8b7db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cli/containerd-shim-kata-v2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import (
"github.com/kata-containers/runtime/containerd-shim-v2"
)

func shimConfig(config *shim.Config) {
config.NoReaper = true
config.NoSubreaper = true
}

func main() {
shim.Run("io.containerd.kata.v2", containerdshim.New)
shim.Run("io.containerd.kata.v2", containerdshim.New, shimConfig)
}

0 comments on commit df8b7db

Please # to comment.