Forcola.Result (forcola v0.2.0)

Copy Markdown View Source

What an OS process did: exit status plus captured output.

:status is the exit code for a normal exit, or {:signal, number} when the process died from a signal, where number is the signal number (for example {:signal, 15} for the SIGTERM Forcola itself sends on timeout). The only atom case is {:signal, :unconfirmed}, which means the shim could not confirm death before its own deadline; treat it as leaked and investigate.

Summary

Types

t()

@type t() :: %Forcola.Result{
  status: non_neg_integer() | {:signal, atom() | non_neg_integer()},
  stderr: binary(),
  stdout: binary()
}