github.com/kim0/docker@v0.6.2-0.20161130212042-4addda3f07e7/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  }