Skip to content

Commit a88b631

Browse files
authored
Merge pull request #2471 from crosbymichael/fatal
Don't fatal on epoll wait
2 parents 88ec455 + 9743ff2 commit a88b631

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)