utils: remove utils & migrate code to sys
Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
This commit is contained in:
parent
46154a6764
commit
d2a6630658
5 changed files with 7 additions and 57 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue