utils: remove utils & migrate code to sys

Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
This commit is contained in:
unclejack 2017-03-29 18:09:08 +03:00
parent 46154a6764
commit d2a6630658
5 changed files with 7 additions and 57 deletions

View file

@ -6,13 +6,13 @@ import (
"os/exec"
"sync"
"github.com/docker/containerd/utils"
"github.com/docker/containerd/sys"
)
// Reap should be called when the process receives an SIGCHLD. Reap will reap
// all exited processes and close their wait channels
func Reap() error {
exits, err := utils.Reap(false)
exits, err := sys.Reap(false)
for _, e := range exits {
Default.Lock()
c, ok := Default.cmds[e.Pid]