ソースを参照

Merge pull request #10449 from LK4D4/fix_race_monitor

Remove explicit setting of ExitCode
Michael Crosby 10 年 前
コミット
144ae9b0c7
1 ファイル変更0 行追加2 行削除
  1. 0 2
      daemon/monitor.go

+ 0 - 2
daemon/monitor.go

@@ -168,12 +168,10 @@ func (m *containerMonitor) Start() error {
 			// we need to check this before reentering the loop because the waitForNextRestart could have
 			// been terminated by a request from a user
 			if m.shouldStop {
-				m.container.ExitCode = exitStatus.ExitCode
 				return err
 			}
 			continue
 		}
-		m.container.ExitCode = exitStatus.ExitCode
 		if exitStatus.OOMKilled {
 			m.container.LogEvent("oom")
 		}