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-06-14 18:11:43 +00:00
|
|
|
s.exitCode = exitStatus.ExitCode
|
2015-11-01 02:31:24 +00:00
|
|
|
s.OOMKilled = exitStatus.OOMKilled
|
|
|
|
}
|