mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
Merge pull request #11295 from LK4D4/oom_after_dead
Check oom status after container stopped in lxc driver
This commit is contained in:
@@ -256,16 +256,16 @@ func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba
|
||||
|
||||
oomKill := false
|
||||
oomKillNotification, err := notifyOnOOM(cgroupPaths)
|
||||
|
||||
<-waitLock
|
||||
|
||||
if err == nil {
|
||||
_, oomKill = <-oomKillNotification
|
||||
log.Debugf("oomKill error %s waitErr %s", oomKill, waitErr)
|
||||
|
||||
} else {
|
||||
log.Warnf("Your kernel does not support OOM notifications: %s", err)
|
||||
}
|
||||
|
||||
<-waitLock
|
||||
|
||||
// check oom error
|
||||
exitCode := getExitCode(c)
|
||||
if oomKill {
|
||||
|
||||
Reference in New Issue
Block a user