nxt::subprocess::ExitStatus struct

Decoded exit status for a child process.

Public functions

auto describe() const →  std::string
Human-readable status summary.
auto success() const →  bool noexcept
True for a normal zero exit code.

Public variables

pid_t pid
Child process id.
int raw_status
Raw status word returned by waitpid.
bool exited
True when the process exited normally.
bool signaled
True when the process was terminated by a signal.
int exit_code
Exit code when exited is true.
int signal
Terminating signal when signaled is true.