6bb0d1816a
So other packages don't need to import the daemon package when they want to use this struct. Signed-off-by: David Calavera <david.calavera@gmail.com> Signed-off-by: Tibor Vass <tibor@docker.com>
9 lines
294 B
Go
9 lines
294 B
Go
package container
|
|
|
|
import "github.com/docker/docker/daemon/execdriver"
|
|
|
|
// setFromExitStatus is a platform specific helper function to set the state
|
|
// based on the ExitStatus structure.
|
|
func (s *State) setFromExitStatus(exitStatus *execdriver.ExitStatus) {
|
|
s.ExitCode = exitStatus.ExitCode
|
|
}
|