diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2019-11-26 19:34:49 +0300 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-26 19:58:25 +0100 |
commit | 9eaac26eda12e387a25b33fc6bd0e4c8d9ba9801 (patch) | |
tree | e9e9bead36367e017df9942045a500f352a1af04 /Servers/ProtocolServer | |
parent | bd559389858370fdd696fa93f88ff999e95fff2d (diff) | |
download | serenity-9eaac26eda12e387a25b33fc6bd0e4c8d9ba9801.zip |
ProtocolServer: Port to socket takeover
Diffstat (limited to 'Servers/ProtocolServer')
-rw-r--r-- | Servers/ProtocolServer/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Servers/ProtocolServer/main.cpp b/Servers/ProtocolServer/main.cpp index 568509384b..8937aa1578 100644 --- a/Servers/ProtocolServer/main.cpp +++ b/Servers/ProtocolServer/main.cpp @@ -9,8 +9,8 @@ int main(int, char**) CEventLoop event_loop; (void)*new HttpProtocol; auto server = CLocalServer::construct(); - unlink("/tmp/psportal"); - server->listen("/tmp/psportal"); + bool ok = server->take_over_from_system_server(); + ASSERT(ok); server->on_ready_to_accept = [&] { auto client_socket = server->accept(); if (!client_socket) { |