Browse Source

LibIPC: Add Connection::is_open()

This will allow clients to see if the IPC socket is still open.
Gunnar Beutner 4 năm trước cách đây
mục cha
commit
e331ef7057
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Userland/Libraries/LibIPC/Connection.h

+ 2 - 0
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; }