mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
15 lines
365 B
Go
15 lines
365 B
Go
|
package daemon
|
||
|
|
||
|
import (
|
||
|
"github.com/docker/docker/container"
|
||
|
"github.com/docker/docker/libcontainerd"
|
||
|
)
|
||
|
|
||
|
// platformConstructExitStatus returns a platform specific exit status structure
|
||
|
func platformConstructExitStatus(e libcontainerd.StateInfo) *container.ExitStatus {
|
||
|
return &container.ExitStatus{
|
||
|
ExitCode: int(e.ExitCode),
|
||
|
OOMKilled: e.OOMKilled,
|
||
|
}
|
||
|
}
|