Integrate sys.SetSubreaper, sys.GetSubreaper in sys/reaper package

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2020-05-03 17:21:35 +02:00
parent fffea312aa
commit 1b66fecad3
3 changed files with 4 additions and 5 deletions

View File

@@ -17,7 +17,7 @@
package shim
import (
"github.com/containerd/containerd/sys"
"github.com/containerd/containerd/sys/reaper"
"github.com/containerd/ttrpc"
)
@@ -26,5 +26,5 @@ func newServer() (*ttrpc.Server, error) {
}
func subreaper() error {
return sys.SetSubreaper(1)
return reaper.SetSubreaper(1)
}