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:
commit
967acd56c1
3 changed files with 51 additions and 3 deletions
|
@ -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")
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue