LibCore: Make singleton process helpers public

This commit is contained in:
Andrew Kaster 2024-04-26 15:18:36 -06:00 committed by Tim Flynn
commit 12a9702acb
Notes: sideshowbarker 2024-07-17 03:27:40 +09:00
2 changed files with 11 additions and 7 deletions

View file

@ -138,6 +138,14 @@ public:
return ProcessAndIPCClient<ClientType> { move(process), move(client) };
}
struct ProcessPaths {
ByteString socket_path;
ByteString pid_path;
};
static ErrorOr<ProcessPaths> paths_for_process(StringView process_name);
static ErrorOr<Optional<pid_t>> get_process_pid(StringView process_name, StringView pid_path);
static ErrorOr<int> create_ipc_socket(ByteString const& socket_path);
pid_t pid() const { return m_process.pid(); }
private: