#include <userver/engine/subprocess/child_process.hpp>
Class that allows controlling child process; usually retrieved from engine::subprocess::ProcessStarter.
Definition at line 21 of file child_process.hpp.
Public Member Functions | |
| ChildProcess (ChildProcess &&) noexcept | |
| ChildProcess & | operator= (ChildProcess &&) noexcept |
| ~ChildProcess () | |
| Does not terminate the child process (just detaches from it). | |
| int | GetPid () const |
| Returns pid of the child process. | |
| void | Wait () |
| Wait for the child process to terminate. Ignores cancellations of the current task. | |
| template<typename Rep, typename Period> | |
| bool | WaitFor (std::chrono::duration< Rep, Period > duration) |
| Wait for the child process to terminate. | |
| template<typename Clock, typename Duration> | |
| bool | WaitUntil (std::chrono::time_point< Clock, Duration > until) |
| Wait for the child process to terminate. | |
| bool | WaitUntil (Deadline deadline) |
| ChildProcessStatus | Get () |
| Wait for the child process to terminate, ignoring cancellations. | |
| void | SendSignal (int signum) |
| Send a signal to the child process. | |
|
nodiscard |
Wait for the child process to terminate, ignoring cancellations.
|
inlinenodiscard |
Wait for the child process to terminate.
Definition at line 44 of file child_process.hpp.
|
nodiscard |
Wait for the child process to terminate. Returns if this did not happen until the specified Deadline has been reached.
|
inlinenodiscard |
Wait for the child process to terminate.
Definition at line 52 of file child_process.hpp.