diff options
author | sin-ack <sin-ack@users.noreply.github.com> | 2022-01-14 13:25:37 +0000 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-01-15 13:29:48 +0330 |
commit | 4cad0dd74c249ac997b1a06b969eceaea6c9c35b (patch) | |
tree | 631454207bc53ed5e936d174e84da9db671e6ebd /Userland/Libraries/LibCore/Stream.h | |
parent | 92be52fd9f01c7feba6d69a112a90f7cfaba9a80 (diff) | |
download | serenity-4cad0dd74c249ac997b1a06b969eceaea6c9c35b.zip |
LibCore: Implement LocalSocket::peer_pid
Mostly a copy of Core::LocalSocket::peer_pid.
Diffstat (limited to 'Userland/Libraries/LibCore/Stream.h')
-rw-r--r-- | Userland/Libraries/LibCore/Stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/Stream.h b/Userland/Libraries/LibCore/Stream.h index 17d59ee408..15b4f07cb2 100644 --- a/Userland/Libraries/LibCore/Stream.h +++ b/Userland/Libraries/LibCore/Stream.h @@ -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(); } |