github.com/ruphin/docker@v1.10.1/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  }