Parcourir la source

LibIPC: Add Connection::is_open()

This will allow clients to see if the IPC socket is still open.
Gunnar Beutner il y a 4 ans
Parent
commit
e331ef7057
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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; }