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"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
|
||||||
|
"github.com/containerd/containerd/sys"
|
||||||
"github.com/containerd/containerd/sys/reaper"
|
"github.com/containerd/containerd/sys/reaper"
|
||||||
runc "github.com/containerd/go-runc"
|
runc "github.com/containerd/go-runc"
|
||||||
"github.com/containerd/ttrpc"
|
"github.com/containerd/ttrpc"
|
||||||
"github.com/opencontainers/runc/libcontainer/system"
|
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ func setupSignals() (chan os.Signal, error) {
|
|||||||
// for waiting on processes
|
// for waiting on processes
|
||||||
runc.Monitor = reaper.Default
|
runc.Monitor = reaper.Default
|
||||||
// set the shim as the subreaper for all orphaned processes created by the container
|
// 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 nil, err
|
||||||
}
|
}
|
||||||
return signals, nil
|
return signals, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user