Seastar
High performance C++ framework for concurrent servers
|
Seastar provides a set of APIs for interprocess communicate
Functions | |
future< std::tuple< file_desc, file_desc > > | seastar::experimental::make_pipe () |
future< process > | seastar::experimental::spawn_process (const std::filesystem::path &pathname, spawn_parameters params) |
future< process > | seastar::experimental::spawn_process (const std::filesystem::path &pathname) |
Create a pipe using pipe2
file_desc
, the first one for reading from the pipe, the second for writing to it. Spawn a subprocess
pathname | the path to the executable |
params
parameters for spawning the subprocess. Instead, it uses the pathname for the argv
[0] in the params. future< process > seastar::experimental::spawn_process | ( | const std::filesystem::path & | pathname, |
spawn_parameters | params | ||
) |
Spawn a subprocess
pathname | the path to the executable |
params | parameters for spawning the subprocess |
posix_spawn()
system call, so the pathname should be relative or absolute path of the executable.