25 #ifndef SEASTAR_MODULE
26 #include <sys/types.h>
29 #include <initializer_list>
31 #include <string_view>
35 #include <fmt/format.h>
37 #include <seastar/core/iostream.hh>
39 #include <seastar/core/sstring.hh>
41 namespace 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
input_stream< char > cout()
Return an writable stream which provides stdout output from the child process.
output_stream< char > cin()
Return an writable stream which provides input from the child process.
void terminate()
Stop the process using SIGTERM.
void kill()
Force the process to exit using SIGKILL.
friend future< process > spawn_process(const std::filesystem::path &, spawn_parameters)
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 &)
future< wait_status > wait()
Definition: process.hh:84
Definition: process.hh:87
A representation of a possibly not-yet-computed value.
Definition: future.hh:1238
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