userver: engine::subprocess::ChildProcessStatus Class Reference
Loading...
Searching...
No Matches
engine::subprocess::ChildProcessStatus Class Reference

#include <userver/engine/subprocess/child_process_status.hpp>

Detailed Description

status of finished subprocess

Definition at line 16 of file child_process_status.hpp.

Public Types

enum class  ExitReason {
  kExited ,
  kSignaled
}
 

Public Member Functions

 ChildProcessStatus (int status, std::chrono::milliseconds execution_time)
 
ExitReason GetExitReason () const
 
bool IsExited () const
 
int GetExitCode () const
 can be called if IsExited() returns true
 
bool IsSignaled () const
 
int GetTermSignal () const
 can be called if IsSignaled() returns true
 
std::chrono::milliseconds GetExecutionTime () const
 Returns execution time for subprocess + time to start it with execve()
 

Member Enumeration Documentation

◆ ExitReason

enum class engine::subprocess::ChildProcessStatus::ExitReason
strong

Definition at line 20 of file child_process_status.hpp.

Member Function Documentation

◆ GetExecutionTime()

std::chrono::milliseconds engine::subprocess::ChildProcessStatus::GetExecutionTime ( ) const
inline

Returns execution time for subprocess + time to start it with execve()

Definition at line 35 of file child_process_status.hpp.

◆ GetExitReason()

ExitReason engine::subprocess::ChildProcessStatus::GetExitReason ( ) const
inline

Definition at line 22 of file child_process_status.hpp.

◆ IsExited()

bool engine::subprocess::ChildProcessStatus::IsExited ( ) const
inline

Definition at line 24 of file child_process_status.hpp.

◆ IsSignaled()

bool engine::subprocess::ChildProcessStatus::IsSignaled ( ) const
inline

Definition at line 29 of file child_process_status.hpp.


The documentation for this class was generated from the following file: