1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #18512 from euank/18510-fixOomKilled

Set OOMKilled state on any OOM event
This commit is contained in:
Sebastiaan van Stijn 2016-01-11 00:09:26 +01:00
commit 967acd56c1
3 changed files with 51 additions and 3 deletions

View file

@ -317,8 +317,7 @@ func (m *containerMonitor) shouldRestart(exitCode int) bool {
// received ack from the execution drivers
func (m *containerMonitor) callback(processConfig *execdriver.ProcessConfig, pid int, chOOM <-chan struct{}) error {
go func() {
_, ok := <-chOOM
if ok {
for range chOOM {
m.logEvent("oom")
}
}()