ProcessInvocation Struct Reference
|
Space-ng SDK
|
Represents a single invocation (execution) of a process. More...
#include <sol3/process_manager/process.h>
Public Attributes | |
| boost::process::v2::process | child |
| The boost::process child handle. More... | |
| std::vector< ExitHandler > | exit_handlers |
| Handlers to invoke when this process invocation exits. More... | |
| core::msg::Stamp | started |
| Timestamp when this invocation was started. More... | |
| ProcessInvocationState | state |
| Process state. More... | |
| std::optional< core::msg::Stamp > | stopped = std::nullopt |
| Timestamp when this invocation was stopped. More... | |
| bool | sent_sigterm = false |
| bool | sent_sigkill = false |
| bool | auto_restart_disabled = false |
| True if auto restart was disabled for this process invocation. More... | |
Detailed Description
Represents a single invocation (execution) of a process.
Tracks the lifecycle state of one process execution, including the child process handle, exit handlers, timing information, and termination signals sent.
Member Data Documentation
◆ auto_restart_disabled
| bool sol3::process_manager::ProcessInvocation::auto_restart_disabled = false |
True if auto restart was disabled for this process invocation.
◆ child
| boost::process::v2::process sol3::process_manager::ProcessInvocation::child |
The boost::process child handle.
◆ exit_handlers
| std::vector<ExitHandler> sol3::process_manager::ProcessInvocation::exit_handlers |
Handlers to invoke when this process invocation exits.
◆ sent_sigkill
| bool sol3::process_manager::ProcessInvocation::sent_sigkill = false |
True if SIGKILL has been successfully sent to this process. Note: This does not indicate the process actually exited from the kill. Use WTERMSIG(code) to get actual signal.
◆ sent_sigterm
| bool sol3::process_manager::ProcessInvocation::sent_sigterm = false |
True if SIGTERM has been successfully sent to this process. Note: This does not indicate the process actually exited from the term. Use WTERMSIG(code) to get actual signal.
◆ started
| core::msg::Stamp sol3::process_manager::ProcessInvocation::started |
Timestamp when this invocation was started.
◆ state
| ProcessInvocationState sol3::process_manager::ProcessInvocation::state |
Process state.
◆ stopped
| std::optional<core::msg::Stamp> sol3::process_manager::ProcessInvocation::stopped = std::nullopt |
Timestamp when this invocation was stopped.
The documentation for this struct was generated from the following file:
- /workspaces/astro/sol3-sdk/cpp/sol3/process_manager/process.h
Generated by