Skip to content

Commit

Permalink
Partially revert the event discard change in #2748.
Browse files Browse the repository at this point in the history
Signed-off-by: Lantao Liu <lantaol@google.com>
  • Loading branch information
Random-Liu committed Nov 8, 2018
1 parent 130d07e commit c524b9c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions runtime/v1/shim/reaper.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"github.com/containerd/containerd/sys"
runc "github.com/containerd/go-runc"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)

// ErrNoSuchProcess is returned when the process no longer exists
Expand All @@ -42,18 +41,10 @@ func Reap() error {
Default.Lock()
for c := range Default.subscribers {
for _, e := range exits {
select {
case c <- runc.Exit{
c <- runc.Exit{
Timestamp: now,
Pid: e.Pid,
Status: e.Status,
}:
default:
logrus.WithFields(logrus.Fields{
"subscriber": c,
"pid": e.Pid,
"status": e.Status,
}).Warn("failed to send exit to subscriber")
}
}
}
Expand Down

0 comments on commit c524b9c

Please sign in to comment.