46std::expected<Child, std::string>
spawnChild(
const std::filesystem::path& binary,
47 const std::vector<std::string>& args,
48 const std::filesystem::path& logFile);
Definition process_platform.h:28
bool childAlive(const Child &child)
Whether child is still running.
Definition process_posix.cc:107
std::expected< Child, std::string > spawnChild(const std::filesystem::path &binary, const std::vector< std::string > &args, const std::filesystem::path &logFile)
Runs binary with args, with its output appended to logFile.
Definition process_posix.cc:41
bool terminateChild(const Child &child, std::chrono::milliseconds grace)
Asks child to exit, waits up to grace, then kills it and everything it started.
Definition process_posix.cc:114
A started child, as the platform identifies it.
Definition process_platform.h:31
std::intptr_t group
Definition process_platform.h:34
std::int64_t pid
Definition process_platform.h:32
std::intptr_t handle
Definition process_platform.h:33