1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:57:44 +00:00

LibCore: Add peer pid retrieval for LocalSocket

This will allow programs connected over unix sockets to retrieve the
pid of their peers in a nice way.
This commit is contained in:
Timothy 2021-07-01 01:58:34 -07:00 committed by Andreas Kling
parent c52ea3dad5
commit 972e5d7292
2 changed files with 26 additions and 0 deletions

View file

@ -16,6 +16,7 @@ public:
virtual ~LocalSocket() override;
static RefPtr<LocalSocket> take_over_accepted_socket_from_system_server(String const& socket_path = String());
pid_t peer_pid() const;
private:
explicit LocalSocket(Object* parent = nullptr);