Options for child process execution. More...
#include <child_process.hpp>
Public Attributes | |
| std::string | working_directory |
| int | working_directory_descriptor = -1 |
| POSIX directory descriptor consumed atomically by spawn instead of resolving working_directory. | |
| std::function< bool(int process_id)> | suspended_process_validator |
| macOS-only validation hook. | |
| int | timeout_ms = 0 |
| 0 = no timeout | |
| size_t | max_output_bytes = 1 << 20 |
| 1 MB default cap | |
| bool | capture_stdout = true |
| bool | capture_stderr = true |
| std::function< void(std::string_view line)> | on_stdout_line |
| Called for each complete captured line on stdout while output is drained. | |
| std::function< void(std::string_view line)> | on_stderr_line |
| Called for each complete captured line on stderr while output is drained. | |
| int | standard_input_timeout_ms = 3000 |
| Bound inherited-input delivery. | |
| size_t | max_standard_input_provider_bytes = 1 << 20 |
| Cap provider-returned bytes. | |
Options for child process execution.
| bool pulp::platform::ProcessOptions::capture_stderr = true |
| bool pulp::platform::ProcessOptions::capture_stdout = true |
| size_t pulp::platform::ProcessOptions::max_output_bytes = 1 << 20 |
1 MB default cap
| size_t pulp::platform::ProcessOptions::max_standard_input_provider_bytes = 1 << 20 |
Cap provider-returned bytes.
| std::function<void(std::string_view line)> pulp::platform::ProcessOptions::on_stderr_line |
Called for each complete captured line on stderr while output is drained.
An exception is treated as cancellation and never escapes ChildProcess.
| std::function<void(std::string_view line)> pulp::platform::ProcessOptions::on_stdout_line |
Called for each complete captured line on stdout while output is drained.
An exception is treated as cancellation and never escapes ChildProcess.
| int pulp::platform::ProcessOptions::standard_input_timeout_ms = 3000 |
Bound inherited-input delivery.
| std::function<bool(int process_id)> pulp::platform::ProcessOptions::suspended_process_validator |
macOS-only validation hook.
When set, the process is born suspended; returning true resumes that exact process, while false terminates it.
| int pulp::platform::ProcessOptions::timeout_ms = 0 |
0 = no timeout
| std::string pulp::platform::ProcessOptions::working_directory |
| int pulp::platform::ProcessOptions::working_directory_descriptor = -1 |
POSIX directory descriptor consumed atomically by spawn instead of resolving working_directory.
The caller retains ownership through start().