2015-11-01 02:31:24 +00:00
|
|
|
// +build linux freebsd
|
|
|
|
|
2015-11-12 19:55:17 +00:00
|
|
|
package container
|
2015-11-01 02:31:24 +00:00
|
|
|
|
|
|
|
// setFromExitStatus is a platform specific helper function to set the state
|
|
|
|
// based on the ExitStatus structure.
|
2016-03-18 18:50:19 +00:00
|
|
|
func (s *State) setFromExitStatus(exitStatus *ExitStatus) {
|
2016-08-30 16:44:06 +00:00
|
|
|
s.ExitCodeValue = exitStatus.ExitCode
|
2015-11-01 02:31:24 +00:00
|
|
|
s.OOMKilled = exitStatus.OOMKilled
|
|
|
|
}
|