mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
parent
60e426938e
commit
2eb404ab14
1 changed files with 2 additions and 0 deletions
2
state.go
2
state.go
|
@ -13,6 +13,7 @@ type State struct {
|
|||
Pid int
|
||||
ExitCode int
|
||||
StartedAt time.Time
|
||||
FinishedAt time.Time
|
||||
Ghost bool
|
||||
}
|
||||
|
||||
|
@ -38,5 +39,6 @@ func (s *State) setRunning(pid int) {
|
|||
func (s *State) setStopped(exitCode int) {
|
||||
s.Running = false
|
||||
s.Pid = 0
|
||||
s.FinishedAt = time.Now()
|
||||
s.ExitCode = exitCode
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue