Remove libcontainer from containerd-shim
Replace the libcontainer variant with the one in our sys package Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
7d7104c549
commit
23aab35fdb
@ -20,10 +20,10 @@ import (
|
||||
"os"
|
||||
"os/signal"
|
||||
|
||||
"github.com/containerd/containerd/sys"
|
||||
"github.com/containerd/containerd/sys/reaper"
|
||||
runc "github.com/containerd/go-runc"
|
||||
"github.com/containerd/ttrpc"
|
||||
"github.com/opencontainers/runc/libcontainer/system"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
@ -36,7 +36,7 @@ func setupSignals() (chan os.Signal, error) {
|
||||
// for waiting on processes
|
||||
runc.Monitor = reaper.Default
|
||||
// set the shim as the subreaper for all orphaned processes created by the container
|
||||
if err := system.SetSubreaper(1); err != nil {
|
||||
if err := sys.SetSubreaper(1); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return signals, nil
|
||||
|
Loading…
Reference in New Issue
Block a user