pub fn is_killed_exit(exit_code: &str, oom_killed: &str) -> boolExpand description
Whether the inspected facts describe a killed main process.
Exit 137 (SIGKILL, the OOM killer’s signal) always counts. OOMKilled
alone does not: Docker sets it when any process in the container’s
cgroup was OOM-killed (a compiler, a test runner, a child node), and it
stays set until the container is started again. A main process that
survived that and then exited 0-127 on its own ran to completion, so the
flag only counts when there is no usable exit status (the watcher’s -1,
or nothing at all) (issue #178).