|
@@ -957,9 +957,6 @@ func (container *Container) monitor() {
|
|
}
|
|
}
|
|
utils.Debugf("Process finished")
|
|
utils.Debugf("Process finished")
|
|
|
|
|
|
- if container.runtime != nil && container.runtime.srv != nil {
|
|
|
|
- container.runtime.srv.LogEvent("die", container.ShortID(), container.runtime.repositories.ImageName(container.Image))
|
|
|
|
- }
|
|
|
|
exitCode := -1
|
|
exitCode := -1
|
|
if container.cmd != nil {
|
|
if container.cmd != nil {
|
|
exitCode = container.cmd.ProcessState.Sys().(syscall.WaitStatus).ExitStatus()
|
|
exitCode = container.cmd.ProcessState.Sys().(syscall.WaitStatus).ExitStatus()
|
|
@@ -968,6 +965,10 @@ func (container *Container) monitor() {
|
|
// Report status back
|
|
// Report status back
|
|
container.State.setStopped(exitCode)
|
|
container.State.setStopped(exitCode)
|
|
|
|
|
|
|
|
+ if container.runtime != nil && container.runtime.srv != nil {
|
|
|
|
+ container.runtime.srv.LogEvent("die", container.ShortID(), container.runtime.repositories.ImageName(container.Image))
|
|
|
|
+ }
|
|
|
|
+
|
|
// Cleanup
|
|
// Cleanup
|
|
container.releaseNetwork()
|
|
container.releaseNetwork()
|
|
if container.Config.OpenStdin {
|
|
if container.Config.OpenStdin {
|