Skip to content

Commit ed94253

Browse files
denesbavikivity
authored andcommitted
util/process: add pid() accessor
1 parent 923071c commit ed94253

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/seastar/util/process.hh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ class process {
7171
static future<process> spawn(const std::filesystem::path& pathname);
7272
public:
7373
process(create_tag, pid_t pid, file_desc&& cin, file_desc&& cout, file_desc&& cerr);
74+
/// Return the process ID of the child process
75+
pid_t pid() const { return _pid; }
7476
/// Return an writable stream which provides input from the child process
7577
output_stream<char> cin();
7678
/// Return an writable stream which provides stdout output from the child process

0 commit comments

Comments
 (0)