1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:08:10 +00:00

LibCore: Implement LocalSocket::peer_pid

Mostly a copy of Core::LocalSocket::peer_pid.
This commit is contained in:
sin-ack 2022-01-14 13:25:37 +00:00 committed by Ali Mohammad Pur
parent 92be52fd9f
commit 4cad0dd74c
2 changed files with 37 additions and 0 deletions

View file

@ -413,6 +413,7 @@ public:
ErrorOr<int> receive_fd(int flags);
ErrorOr<void> send_fd(int fd);
ErrorOr<pid_t> peer_pid() const;
ErrorOr<size_t> read_without_waiting(Bytes buffer);
virtual ~LocalSocket() { close(); }