Signed-off-by: John Howard <jhoward@microsoft.com> Upstream-commit: 77af7d1067b83cf683745e3f15ce19425beb34e0 Component: engine
13 lines
352 B
Go
13 lines
352 B
Go
// +build linux freebsd
|
|
|
|
package daemon
|
|
|
|
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
|
|
s.OOMKilled = exitStatus.OOMKilled
|
|
}
|