Don't fatal on epoll wait

This removes a log fatal on epoll wait for OOM events.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2018-07-17 16:21:04 -04:00
parent dfde5ec316
commit 9743ff21c9

View File

@ -116,7 +116,8 @@ func (o *oomCollector) start() {
if err == unix.EINTR { if err == unix.EINTR {
continue continue
} }
logrus.WithField("error", err).Fatal("cgroups: epoll wait") logrus.WithError(err).Error("cgroups: epoll wait failed, OOM notifications disabled")
return
} }
for i := 0; i < n; i++ { for i := 0; i < n; i++ {
o.process(uintptr(events[i].Fd), events[i].Events) o.process(uintptr(events[i].Fd), events[i].Events)