浏览代码

LibIPC: Add Connection::is_open()

This will allow clients to see if the IPC socket is still open.
Gunnar Beutner 4 年之前
父节点
当前提交
e331ef7057
共有 1 个文件被更改,包括 2 次插入0 次删除
  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; }