Skip to content

Commit 9743ff2

Browse files
committed
Don't fatal on epoll wait
This removes a log fatal on epoll wait for OOM events. Signed-off-by: Michael Crosby <[email protected]>
1 parent dfde5ec commit 9743ff2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

metrics/cgroups/oom.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ func (o *oomCollector) start() {
116116
if err == unix.EINTR {
117117
continue
118118
}
119-
logrus.WithField("error", err).Fatal("cgroups: epoll wait")
119+
logrus.WithError(err).Error("cgroups: epoll wait failed, OOM notifications disabled")
120+
return
120121
}
121122
for i := 0; i < n; i++ {
122123
o.process(uintptr(events[i].Fd), events[i].Events)

0 commit comments

Comments
 (0)