mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
WindowServer: Port to socket takeover
This commit is contained in:
parent
c9e21b2bcc
commit
22a05621d5
Notes:
sideshowbarker
2024-07-19 11:03:56 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/22a05621d5d Pull-request: https://github.com/SerenityOS/serenity/pull/827
@ -15,6 +15,7 @@ KeepAlive=1
|
||||
User=anon
|
||||
|
||||
[WindowServer]
|
||||
Socket=/tmp/portal/window
|
||||
Priority=high
|
||||
KeepAlive=1
|
||||
User=anon
|
||||
|
@ -14,7 +14,7 @@ class GWindowServerConnection : public IPC::Client::Connection<WSAPI_ServerMessa
|
||||
C_OBJECT(GWindowServerConnection)
|
||||
public:
|
||||
GWindowServerConnection()
|
||||
: Connection("/tmp/wsportal")
|
||||
: Connection("/tmp/portal/window")
|
||||
{}
|
||||
|
||||
void handshake() override;
|
||||
|
@ -27,8 +27,8 @@ WSEventLoop::WSEventLoop()
|
||||
m_keyboard_fd = open("/dev/keyboard", O_RDONLY | O_NONBLOCK | O_CLOEXEC);
|
||||
m_mouse_fd = open("/dev/psaux", O_RDONLY | O_NONBLOCK | O_CLOEXEC);
|
||||
|
||||
unlink("/tmp/wsportal");
|
||||
m_server->listen("/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();
|
||||
|
Loading…
Reference in New Issue
Block a user