github.com/akerouanton/docker@v1.11.0-rc3/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.ExitCode = exitStatus.ExitCode
     9  	s.OOMKilled = exitStatus.OOMKilled
    10  }