diff --git a/libcontainer/notify_linux.go b/libcontainer/notify_linux.go index 81587b9b1..47a06783d 100644 --- a/libcontainer/notify_linux.go +++ b/libcontainer/notify_linux.go @@ -44,9 +44,9 @@ func registerMemoryEvent(cgDir string, evName string, arg string) (<-chan struct ch := make(chan struct{}) go func() { defer func() { - close(ch) eventfd.Close() evFile.Close() + close(ch) }() buf := make([]byte, 8) for {