@@ -39,7 +39,6 @@ import (
39
39
"github.com/containerd/containerd/linux/shim"
40
40
shimapi "github.com/containerd/containerd/linux/shim/v1"
41
41
"github.com/containerd/containerd/namespaces"
42
- "github.com/containerd/containerd/reaper"
43
42
"github.com/containerd/typeurl"
44
43
ptypes "github.com/gogo/protobuf/types"
45
44
"github.com/pkg/errors"
@@ -194,7 +193,7 @@ func handleSignals(logger *logrus.Entry, signals chan os.Signal, server *ttrpc.S
194
193
case s := <- signals :
195
194
switch s {
196
195
case unix .SIGCHLD :
197
- if err := reaper .Reap (); err != nil {
196
+ if err := shim .Reap (); err != nil {
198
197
logger .WithError (err ).Error ("reap exit status" )
199
198
}
200
199
case unix .SIGTERM , unix .SIGINT :
@@ -248,11 +247,11 @@ func (l *remoteEventsPublisher) Publish(ctx context.Context, topic string, event
248
247
}
249
248
cmd := exec .CommandContext (ctx , containerdBinaryFlag , "--address" , l .address , "publish" , "--topic" , topic , "--namespace" , ns )
250
249
cmd .Stdin = bytes .NewReader (data )
251
- c , err := reaper .Default .Start (cmd )
250
+ c , err := shim .Default .Start (cmd )
252
251
if err != nil {
253
252
return err
254
253
}
255
- status , err := reaper .Default .Wait (cmd , c )
254
+ status , err := shim .Default .Wait (cmd , c )
256
255
if err != nil {
257
256
return err
258
257
}
0 commit comments