mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17:35 +00:00
LookupServer: Port to socket takeover
This commit is contained in:
parent
821ed8367b
commit
ab98969403
3 changed files with 3 additions and 2 deletions
|
@ -11,6 +11,7 @@ KeepAlive=1
|
|||
User=anon
|
||||
|
||||
[LookupServer]
|
||||
Socket=/tmp/portal/lookup
|
||||
Priority=low
|
||||
KeepAlive=1
|
||||
User=anon
|
||||
|
|
|
@ -30,7 +30,7 @@ static int connect_to_lookup_server()
|
|||
|
||||
sockaddr_un address;
|
||||
address.sun_family = AF_LOCAL;
|
||||
strcpy(address.sun_path, "/tmp/.LookupServer-socket");
|
||||
strcpy(address.sun_path, "/tmp/portal/lookup");
|
||||
|
||||
int retries = 3;
|
||||
int rc = 0;
|
||||
|
|
|
@ -49,7 +49,7 @@ LookupServer::LookupServer()
|
|||
const_cast<CLocalSocket&>(*socket).on_ready_to_read = []{};
|
||||
};
|
||||
};
|
||||
bool ok = m_local_server->listen("/tmp/.LookupServer-socket");
|
||||
bool ok = m_local_server->take_over_from_system_server();
|
||||
ASSERT(ok);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue