mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 11:48:59 +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
Notes:
sideshowbarker
2024-07-18 11:09:41 +09:00
Author: https://github.com/timmot
Commit: 972e5d7292
Pull-request: https://github.com/SerenityOS/serenity/pull/8353
Reviewed-by: https://github.com/MaxWipfli ✅
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