From 22a05621d5def8240c0fb9249747d6c561b49c1c Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Tue, 26 Nov 2019 19:30:35 +0300 Subject: [PATCH] WindowServer: Port to socket takeover --- Base/etc/SystemServer.ini | 1 + Libraries/LibGUI/GWindowServerConnection.h | 2 +- Servers/WindowServer/WSEventLoop.cpp | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Base/etc/SystemServer.ini b/Base/etc/SystemServer.ini index 02d93d59d5..40381e257f 100644 --- a/Base/etc/SystemServer.ini +++ b/Base/etc/SystemServer.ini @@ -15,6 +15,7 @@ KeepAlive=1 User=anon [WindowServer] +Socket=/tmp/portal/window Priority=high KeepAlive=1 User=anon diff --git a/Libraries/LibGUI/GWindowServerConnection.h b/Libraries/LibGUI/GWindowServerConnection.h index 522dcb9bcd..218cc0944a 100644 --- a/Libraries/LibGUI/GWindowServerConnection.h +++ b/Libraries/LibGUI/GWindowServerConnection.h @@ -14,7 +14,7 @@ class GWindowServerConnection : public IPC::Client::Connectionlisten("/tmp/wsportal"); + bool ok = m_server->take_over_from_system_server(); + ASSERT(ok); m_server->on_ready_to_accept = [this] { auto client_socket = m_server->accept();