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

LibCore: Make LocalSocket takeover mechanism return ErrorOr<T>

This commit is contained in:
Andreas Kling 2021-11-23 11:14:40 +01:00
parent c37a02341b
commit c1a3968c66
9 changed files with 26 additions and 33 deletions

View file

@ -15,7 +15,7 @@ class LocalSocket final : public Socket {
public:
virtual ~LocalSocket() override;
static RefPtr<LocalSocket> take_over_accepted_socket_from_system_server(String const& socket_path = String());
static ErrorOr<NonnullRefPtr<LocalSocket>> take_over_accepted_socket_from_system_server(String const& socket_path = String());
pid_t peer_pid() const;
private: