github.com/kinvolk/docker@v1.13.1/container/state_unix.go (about)

     1  // +build linux freebsd
     2  
     3  package container
     4  
     5  // setFromExitStatus is a platform specific helper function to set the state
     6  // based on the ExitStatus structure.
     7  func (s *State) setFromExitStatus(exitStatus *ExitStatus) {
     8  	s.ExitCodeValue = exitStatus.ExitCode
     9  	s.OOMKilled = exitStatus.OOMKilled
    10  }