29#include <initializer_list>
35#include <fmt/format.h>
37#include <seastar/core/iostream.hh>
39#include <seastar/core/sstring.hh>
41namespace seastar::experimental {
51 std::vector<sstring>
env;
88 int terminating_signal;
90 using wait_status = std::variant<wait_exited, wait_signaled>;
Definition: process.hh:60
void terminate()
Stop the process using SIGTERM.
future< wait_status > wait()
friend future< process > spawn_process(const std::filesystem::path &, spawn_parameters)
void kill()
Force the process to exit using SIGKILL.
input_stream< char > cerr()
Return an writable stream which provides stderr output from the child process.
friend future< process > spawn_process(const std::filesystem::path &)
output_stream< char > cin()
Return an writable stream which provides input from the child process.
input_stream< char > cout()
Return an writable stream which provides stdout output from the child process.
Definition: process.hh:84
Definition: process.hh:87
A representation of a possibly not-yet-computed value.
Definition: future.hh:1240
Definition: process.hh:47
std::vector< sstring > env
The environment variables for the program.
Definition: process.hh:51
std::vector< sstring > argv
The arguments passed to the program.
Definition: process.hh:49