From 956e49a36b92b321c71aec3fa70f2e422dc9c056 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Fri, 16 Nov 2018 11:34:15 -0500 Subject: [PATCH] Revert v2 dropped events Partial revert of #2748 Signed-off-by: Michael Crosby --- runtime/v2/shim/reaper_unix.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/runtime/v2/shim/reaper_unix.go b/runtime/v2/shim/reaper_unix.go index 10d5c304a..45a88db12 100644 --- a/runtime/v2/shim/reaper_unix.go +++ b/runtime/v2/shim/reaper_unix.go @@ -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 @@ -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") } } }