From e331ef705724aa46220ee12a4b417d2807657a1c Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 15 Jul 2021 21:15:59 +1000 Subject: [PATCH] LibIPC: Add Connection::is_open() This will allow clients to see if the IPC socket is still open. --- Userland/Libraries/LibIPC/Connection.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibIPC/Connection.h b/Userland/Libraries/LibIPC/Connection.h index 1f90ad4c87..c6d66dcd66 100644 --- a/Userland/Libraries/LibIPC/Connection.h +++ b/Userland/Libraries/LibIPC/Connection.h @@ -132,6 +132,8 @@ public: virtual void die() { } + bool is_open() const { return m_socket->is_open(); } + protected: Core::LocalSocket& socket() { return *m_socket; }