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:
parent
c52ea3dad5
commit
972e5d7292
2 changed files with 26 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue