8#ifndef GALAXY_PLATFORM_SUBPROCESS_HPP_
9#define GALAXY_PLATFORM_SUBPROCESS_HPP_
15#include <subprocess.h>
41 Subprocess(std::string_view process, std::span<std::string> args = {});
56 void create(std::string_view process, std::span<std::string> args = {});
82 bool alive()
noexcept;
struct subprocess_s subprocess
Subprocess.hpp galaxy.
void terminate() noexcept
Terminate process, killing if alive.
~Subprocess() noexcept
Destructor.
Subprocess() noexcept
Constructor.
int join() noexcept
Wait for a process to finish execution.
subprocess m_process
Process information and handles.
bool alive() noexcept
Check if subprocess is still alive and executing.
void create(std::string_view process, std::span< std::string > args={})
Launch a subprocess.
void destroy() noexcept
Destroy process, preserving if alive.