github.com/ncdc/docker@v0.10.1-0.20160129113957-6c6729ef5b74/container/state_unix.go (about) 1 // +build linux freebsd 2 3 package container 4 5 import "github.com/docker/docker/daemon/execdriver" 6 7 // setFromExitStatus is a platform specific helper function to set the state 8 // based on the ExitStatus structure. 9 func (s *State) setFromExitStatus(exitStatus *execdriver.ExitStatus) { 10 s.ExitCode = exitStatus.ExitCode 11 s.OOMKilled = exitStatus.OOMKilled 12 }