mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
LibCore+Inspector: Reverse the direction of Inspector connections
Core::EventLoop now makes an outbound connection to InspectorServer instead of listening for incoming connections on a /tmp/rpc/PID socket. This has many benefits, for example: - We no longer keep an open listening socket in most applications - We stop leaking socket files in /tmp/rpc - We can tighten the pledges in many programs (patch coming)
This commit is contained in:
parent
3d3a5b431f
commit
dc25a4e249
6 changed files with 77 additions and 121 deletions
|
@ -226,14 +226,14 @@ bool Object::is_visible_for_timer_purposes() const
|
|||
return true;
|
||||
}
|
||||
|
||||
void Object::increment_inspector_count(Badge<RPCClient>)
|
||||
void Object::increment_inspector_count(Badge<InspectorServerConnection>)
|
||||
{
|
||||
++m_inspector_count;
|
||||
if (m_inspector_count == 1)
|
||||
did_begin_inspection();
|
||||
}
|
||||
|
||||
void Object::decrement_inspector_count(Badge<RPCClient>)
|
||||
void Object::decrement_inspector_count(Badge<InspectorServerConnection>)
|
||||
{
|
||||
--m_inspector_count;
|
||||
if (!m_inspector_count)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue