mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
add die event
This commit is contained in:
parent
ed7a4236b3
commit
a41384ad73
1 changed files with 3 additions and 1 deletions
|
@ -789,7 +789,9 @@ func (container *Container) monitor() {
|
|||
}
|
||||
}
|
||||
utils.Debugf("Process finished")
|
||||
|
||||
if container.runtime != nil && container.runtime.srv != nil {
|
||||
container.runtime.srv.LogEvent("die", container.ShortID())
|
||||
}
|
||||
exitCode := -1
|
||||
if container.cmd != nil {
|
||||
exitCode = container.cmd.ProcessState.Sys().(syscall.WaitStatus).ExitStatus()
|
||||
|
|
Loading…
Add table
Reference in a new issue