1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
Set state running before dumping to disk
This commit is contained in:
Michael Crosby 2014-07-16 11:35:14 -07:00
commit 5702029a0f

View file

@ -1104,10 +1104,10 @@ func (container *Container) waitForStart() error {
c.Close()
}
}
if err := container.toDisk(); err != nil {
container.State.SetRunning(command.Pid())
if err := container.ToDisk(); err != nil {
utils.Debugf("%s", err)
}
container.State.SetRunning(command.Pid())
}
// We use a callback here instead of a goroutine and an chan for