Skip to content

Commit

Permalink
LookupServer: Port to socket takeover
Browse files Browse the repository at this point in the history
  • Loading branch information
bugaevc authored and awesomekling committed Nov 26, 2019
1 parent 821ed83 commit ab98969
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Base/etc/SystemServer.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ KeepAlive=1
User=anon

[LookupServer]
Socket=/tmp/portal/lookup
Priority=low
KeepAlive=1
User=anon
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/netdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Servers/LookupServer/LookupServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ab98969

Please sign in to comment.